Closed Bug 1522413 Opened 2 years ago Closed 2 years ago

WindowManagerMixin:open_chrome_window() registers focus event listeners too late

Categories

(Testing :: Marionette, enhancement, P2)

enhancement

Tracking

(firefox66 fixed)

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(1 file)

The JS code in that method registers the event listeners for focus and activate after calling win.focus(). It means we have a race conditions for tests trying to open chrome windows.

The focus promise has to be setup before calling focus() on the window.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Priority: -- → P2
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9762341e99f9
[marionette] Register event listeners before focusing the new window in WindowManagerMixin.open_chrome_window(). r=ato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.