mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 806725 - Fix a typo in the patch that landed. r=jdm
This commit is contained in:
parent
7535fdbc97
commit
94e7b9a930
@ -34,12 +34,11 @@ function testOnWindow(aIsPrivate, aCallback) {
|
|||||||
win.addEventListener("load", function onLoad() {
|
win.addEventListener("load", function onLoad() {
|
||||||
win.removeEventListener("load", onLoad, false);
|
win.removeEventListener("load", onLoad, false);
|
||||||
win.addEventListener("DOMContentLoaded", function onInnerLoad() {
|
win.addEventListener("DOMContentLoaded", function onInnerLoad() {
|
||||||
// I am at my wits' end figuring out how to stop this load from occurring. I give up.
|
|
||||||
if (win.content.location.href == "about:privatebrowsing") {
|
if (win.content.location.href == "about:privatebrowsing") {
|
||||||
win.gBrowser.loadURI(contentPage);
|
win.gBrowser.loadURI(contentPage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
win.removeEventListener("DOMConten/tLoaded", onInnerLoad, true);
|
win.removeEventListener("DOMContentLoaded", onInnerLoad, true);
|
||||||
SimpleTest.executeSoon(function() { aCallback(win); });
|
SimpleTest.executeSoon(function() { aCallback(win); });
|
||||||
}, true);
|
}, true);
|
||||||
win.gBrowser.loadURI(contentPage);
|
win.gBrowser.loadURI(contentPage);
|
||||||
|
Loading…
Reference in New Issue
Block a user