Bug 1483828 - [Part 5] Add a dummy element to a few tests to ensure the focus is not unexpectedly moved to the Chrome UI. r=webdriver-reviewers,search-reviewers,mcheang,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D202873
This commit is contained in:
Sean Feng 2024-03-04 14:16:32 +00:00
parent 48d9b4cab3
commit 3efbd66e3f
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@
</head>
<body>
<!-- Dummy Button is used to ensure pressing Shift+Tab on <input> will make the new focus
- remains in the same document, rather than the Chrome UI. -->
<button>Dummy Button</button>
<div id="container"><input type="text" value=""/></div>
<script src="chrome://mochitests/content/browser/browser/components/search/test/browser/contentSearchUI.js">

View File

@ -133,6 +133,9 @@
<div id="trackPointer" class="block"></div>
<div>
<h2>KeyReporter</h2>
<!-- Dummy Button is used to ensure pressing Shift+Tab on <input> will make the new focus
- remains in the same document, rather than the Chrome UI. -->
<button>Dummy Button</button>
<input type="text" id="keys" size="80">
</div>
<div>