mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 730551. (Bv2) browser_bug638292.js: Check load target, Make SeaMonkey support more specific. r=bmcbride.
--HG-- extra : rebase_source : 14099190f01219771382ab75e52d21cc888bddf0
This commit is contained in:
parent
6ebbcdb9ef
commit
08c5ce6fb0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user