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:
Ehsan Akhgari 2012-12-02 19:05:50 -05:00
parent 90b7a13094
commit bd84c35ab8

View File

@ -56,6 +56,7 @@ function test() {
let win = OpenBrowserWindow(options);
win.addEventListener("load", function onLoad() {
win.removeEventListener("load", onLoad, false);
win.gBrowser.stop(); // Cancel the current home page load
windowsToClose.push(win);
callback(win);
}, false);