From cb99f25d688996dac1ffcbc27b4634ffc2d4a5b4 Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Tue, 6 Mar 2012 15:10:25 +0100 Subject: [PATCH] Bug 730551. (Bv2) browser_bug638292.js: Check load target, Make SeaMonkey support more specific. r=bmcbride. --- .../extensions/test/xpinstall/browser_bug638292.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js b/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js index 37d9f63a7ccb..d5d590a3ff72 100644 --- a/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js +++ b/toolkit/mozapps/extensions/test/xpinstall/browser_bug638292.js @@ -13,9 +13,13 @@ function test() { 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.)"); + if (!gBrowser.browsers[2] || + aEvent.target != gBrowser.browsers[2].contentDocument) { + // SeaMonkey tabbrowser needs to deal with additional loads. + if (navigator.userAgent.match(/ SeaMonkey\//)) + info("Ignoring unrelated load on SeaMonkey. (Expected 2-3 times.)"); + else + ok(false, "Ignoring unrelated load on Firefox. (Should never happen!)"); return; }