зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 0eaeadceac47 (bug 1563040) requested by whimboo
This commit is contained in:
Родитель
35c00b8242
Коммит
ddd3e9f4f5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче