Bug 1315260 - Ensure that we don't replace load popup. r=bkelly
This makes open-url-multi-window-6.htm always fail, which is intended.
MozReview-Commit-ID: 4OENwxMLUeh
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/XMLHttpRequest/open-url-multi-window-6.htm.ini
@@ -0,0 +1,5 @@
+[open-url-multi-window-6.htm]
+ type: testharness
+ [XMLHttpRequest: open() in document that is not fully active (but may be active) should throw]
+ expected: FAIL
+
--- a/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-6.htm
+++ b/testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-6.htm
@@ -21,18 +21,18 @@
var ifr = document.createElement("iframe");
ifr.onload = function() {
// Again, do things async so we're not doing loads from inside
// load events.
setTimeout(function() {
client = new ifr.contentWindow.XMLHttpRequest();
count++;
// Important to do a normal navigation, not a reload.
- win.location.href = "resources/init.htm";
- }, 100);
+ win.location.href = "resources/init.htm?avoid-replace";
+ }, 0);
}
doc.body.appendChild(ifr);
} else if(1 == count) {
assert_throws("InvalidStateError", function() { client.open("GET", "...") })
test.done()
}
})
}