Skip to content

Commit

Permalink
Bug 1092388 - Remove cross-origin document.write test. r=bz
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bholley committed Nov 13, 2014
1 parent 980e728 commit 53012a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dom/tests/mochitest/bugs/test_bug346659.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 53012a0

Please sign in to comment.