Bug 730551. (Av1) browser_bug638292.js: Support SeaMonkey's "about:blank" loads. r=bmcbride.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 27 Feb 2012 07:54:25 +0100
changeset 87766 d1b2fd680235060584245a63b6b4d17842462076
parent 87765 2a18bd58aae2df507fe52a1bd18811a8d7796eec
child 87795 85e309ee6d341b38e5d670b3ecc2ef90fb720f7a
push id22145
push usersgautherie.bz@free.fr
push dateMon, 27 Feb 2012 06:55:26 +0000
treeherdermozilla-central@d1b2fd680235 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbmcbride
bugs730551, 638292
milestone13.0a1
first release with
nightly linux32
d1b2fd680235 / 13.0a1 / 20120227031120 / files
nightly linux64
d1b2fd680235 / 13.0a1 / 20120227031120 / files
nightly mac
d1b2fd680235 / 13.0a1 / 20120227031120 / files
nightly win32
d1b2fd680235 / 13.0a1 / 20120227031120 / files
nightly win64
d1b2fd680235 / 13.0a1 / 20120227031120 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 730551. (Av1) browser_bug638292.js: Support SeaMonkey's "about:blank" loads. r=bmcbride.
toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js
--- a/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js
+++ b/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js
@@ -8,16 +8,22 @@ function test() {
     gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
     waitForFocus(page_loaded, gBrowser.contentWindow);
   }, true);
   gBrowser.loadURI(TESTROOT + "bug638292.html");
 }
 
 function check_load(aCallback) {
   gBrowser.addEventListener("load", function(aEvent) {
+    // SeaMonkey needs to deal with intermediate "about:blank" document(s).
+    if (!aEvent.target.location) {
+      info("Ignoring about:blank load. (Expected (a few times) on SeaMonkey only.)");
+      return;
+    }
+
     gBrowser.removeEventListener("load", arguments.callee, true);
 
     // Let the load handler complete
     executeSoon(function() {
       var doc = gBrowser.browsers[2].contentDocument;
       is(doc.getElementById("enabled").textContent, "true", "installTrigger should have been enabled");
 
       // Focus the old tab