4 https://bugzilla.mozilla.org/show_bug.cgi?id=540462
7 <title>Test for Bug
540462</title>
8 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <body onload=
"runTest()">
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=540462">Mozilla Bug
540462</a>
14 <div id=
"content" style=
"display: none">
18 <script type=
"application/javascript">
20 /** Test for Bug
540462 **/
24 win = window.open(
"file_bug540462.html",
"",
"width=100,height=100");
29 function documentWriteLoad() {
30 if (++dwlCount ==
1) {
31 originalURL = win.document.body.firstChild.href;
32 } else if (dwlCount ==
2) {
33 is(win.document.body.firstChild.href, originalURL,
"Wrong href!");
39 SimpleTest.waitForExplicitFinish();