Bug 1315260 - Ensure that we don't replace load popup. r=bkelly
authorAndreas Farre <farre@mozilla.com>
Wed, 16 Nov 2016 16:03:02 +0100
changeset 325479 9211bfa02ed5d2807fba8253cff6eb9383ce3f5d
parent 325478 6474932e4e65d2f808803218fe0f306e14c0ff82
child 325480 6ddb12dd47ab87007b9515b297d1dc136d34b2b6
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersbkelly
bugs1315260
milestone53.0a1
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
testing/web-platform/meta/XMLHttpRequest/open-url-multi-window-6.htm.ini
testing/web-platform/tests/XMLHttpRequest/open-url-multi-window-6.htm
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()
           }
         })
       }