Bug 806725 - Fix a typo in the patch that landed. r=jdm

This commit is contained in:
Bellindira Castillo [:bellindira] 2012-12-18 17:08:15 -06:00
parent 7535fdbc97
commit 94e7b9a930

View File

@ -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);