4 https://bugzilla.mozilla.org/show_bug.cgi?id=753278
8 <title>Test for Bug
753278</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <body onload=
"runTest();">
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=753278">Mozilla Bug
753278</a>
15 <div id=
"content" style=
"display: none">
19 <script type=
"application/javascript">
21 /** Test for Bug
753278 **/
23 SimpleTest.waitForExplicitFinish();
25 var f = document.getElementsByTagName(
"iframe")[
0];
28 f.contentDocument.open();
29 f.contentDocument.write('
<script>window
.location
= "file_bug753278.html"; document
.close(); document
.open(); document
.write("\\u003Cscript>parent.fail();\\u003C/script>"); document
.close();\u003c/script
>');
30 f.contentDocument.close();
34 ok(true, "window.location took precedence");
39 ok(false, "window.location should have taken precedence");