Backed out changeset 0eaeadceac47 (bug 1563040) requested by whimboo

This commit is contained in:
Daniel Varga 2019-07-22 12:52:29 +03:00
Родитель 35c00b8242
Коммит ddd3e9f4f5
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -353,7 +353,11 @@ browser.Context = class {
subject => subject == win
);
win.focus();
// Bug 1509380 - Missing focus/activate event when Firefox is not
// the top-most application. As such wait for the next tick, and
// manually focus the newly opened window.
win.setTimeout(() => win.focus(), 0);
await Promise.all([activated, focused, startup]);
// The new window shouldn't get focused. As such set the

Просмотреть файл

@ -163,7 +163,10 @@ class WindowManagerMixin(object):
let win = window.openDialog(url, null, "chrome,centerscreen");
let focused = waitForFocus(win);
win.focus();
// Bug 1509380 - Missing focus/activate event when Firefox is not
// the top-most application. As such wait for the next tick, and
// manually focus the newly opened window.
win.setTimeout(() => win.focus(), 0);
await focused;
// The new window shouldn't get focused. As such set the