Closed Bug 1522529 Opened 5 years ago Closed 5 years ago

Remove focus hack from the gURLBar getter and properly implement UrlbarInput focus and blur methods

Categories

(Firefox :: Address Bar, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 66
Tracking Status
firefox66 --- fixed

People

(Reporter: standard8, Assigned: dao)

References

Details

Attachments

(1 file)

browser/base/content/test/general/browser_newwindow_focus.js is failing when run with QuantumBar:

  FAIL URLBar should be focused - [object XULFrameElement] == {} - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/general/browser_newwindow_focus.js :: test_no_steal_focus/< :: line 91
Stack trace:
chrome://mochitests/content/browser/browser/base/content/test/general/browser_newwindow_focus.js:test_no_steal_focus/<:91
resource://testing-common/BrowserTestUtils.jsm:withNewTab:111
chrome://mochitests/content/browser/browser/base/content/test/general/browser_newwindow_focus.js:test_no_steal_focus:70
chrome://mochikit/content/browser-test.js:Tester_execTest/<:1108
chrome://mochikit/content/browser-test.js:Tester_execTest:1099
chrome://mochikit/content/browser-test.js:nextTest/<:997
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:803

In the failing test results the XULFrameElement is the browser window, the {} is the gURLBar.inputField of the new window.

When I open a new window, the urlbar is focused, so this could be some sort of timing issue introduced with QuantumBar.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Priority: -- → P1
Summary: browser_newwindow_focus.js fails when run with QuantumBar (focus issues?) → Remove focus hack from the gURLBar getter and properly implement UrlbarInput focus and blur methods
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fb9849a4c577
Remove focus hack from the gURLBar getter and properly implement UrlbarInput focus and blur methods. r=adw
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: