4 https://bugzilla.mozilla.org/show_bug.cgi?id=957479
8 <title>Test for Bug
957479</title>
9 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
13 /** Test for Bug
957479 **/
14 SimpleTest.waitForExplicitFinish();
15 // Child needs to invoke us, otherwise our onload will fire before the child
16 // has done the write/close bit.
17 onmessage = function doTest() {
18 is(frames[
0].location.pathname,
"/tests/docshell/test/file_pushState_after_document_open.html",
"Should have the right path here");
19 is(frames[
0].location.hash,
"",
"Should have the right hash here");
20 frames[
0].history.pushState({}, '', frames[
0].document.URL +
"#foopy");
21 is(frames[
0].location.pathname,
"/tests/docshell/test/file_pushState_after_document_open.html",
"Pathname should not have changed");
22 is(frames[
0].location.hash,
"#foopy",
"Hash should have changed");
29 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=957479">Mozilla Bug
957479</a>
31 <div id=
"content" style=
"display: none">
32 <iframe src=
"file_pushState_after_document_open.html"></iframe>