From 53012a0126f7dae971a362bb76d47d42de655533 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Thu, 13 Nov 2014 11:13:36 -0800 Subject: [PATCH] Bug 1092388 - Remove cross-origin document.write test. r=bz This test is pretty bogus. It uses enablePrivilege and then tries to test various document.write behaviors across origins. This test in general is pretty terrible. I spent a while trying to improve it, got frustrated, was tempted to remove the whole thing, and then finally settled on this as the path of least resistance. --- dom/tests/mochitest/bugs/test_bug346659.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dom/tests/mochitest/bugs/test_bug346659.html b/dom/tests/mochitest/bugs/test_bug346659.html index 2532ea2396ec1..3943c2c400c99 100644 --- a/dom/tests/mochitest/bugs/test_bug346659.html +++ b/dom/tests/mochitest/bugs/test_bug346659.html @@ -21,7 +21,7 @@ // do the tests in two batches, because otherwise the popup blocker kills off // our test because it opens too many windows. var numTestsSet1 = 6; -var numTestsSet2 = 4; +var numTestsSet2 = 2; var numTestsSet3 = 2; var complete = 0; SimpleTest.waitForExplicitFinish(); @@ -173,9 +173,7 @@ function startSecondBatch() { var baseurl = window.location.href.replace(/mochi\.test:8888/, "example.com"); wins[7] = window.open(r(baseurl, 'bug346659-opener.html?{"load":7}')); - wins[8] = window.open(r(baseurl, 'bug346659-opener.html?{"write":8}')); wins[9] = window.open(r(baseurl, 'bug346659-parent.html?{"load":9}')); - wins[10] = window.open(r(baseurl, 'bug346659-parent.html?{"write":10}')); } function startThirdBatch() {