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 51d954b25b
commit 7a54853680

View File

@ -34,12 +34,11 @@ function testOnWindow(aIsPrivate, aCallback) {
win.addEventListener("load", function onLoad() {
win.removeEventListener("load", onLoad, false);
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") {
win.gBrowser.loadURI(contentPage);
return;
}
win.removeEventListener("DOMConten/tLoaded", onInnerLoad, true);
win.removeEventListener("DOMContentLoaded", onInnerLoad, true);
SimpleTest.executeSoon(function() { aCallback(win); });
}, true);
win.gBrowser.loadURI(contentPage);