зеркало из https://github.com/mozilla/gecko-dev.git
Bug 806690 - Cancel the current browser load to make sure that we don't catch unexpected load events for about:home; shoulder-r=jdm
DONTBUILD since this in NPOTB for global PB builds
This commit is contained in:
Родитель
aa956a32ef
Коммит
1157a9ee2f
|
@ -56,6 +56,7 @@ function test() {
|
||||||
let win = OpenBrowserWindow(options);
|
let win = OpenBrowserWindow(options);
|
||||||
win.addEventListener("load", function onLoad() {
|
win.addEventListener("load", function onLoad() {
|
||||||
win.removeEventListener("load", onLoad, false);
|
win.removeEventListener("load", onLoad, false);
|
||||||
|
win.gBrowser.stop(); // Cancel the current home page load
|
||||||
windowsToClose.push(win);
|
windowsToClose.push(win);
|
||||||
callback(win);
|
callback(win);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче