4 https://bugzilla.mozilla.org/show_bug.cgi?id=1186774
8 <title>Test for Bug
1186774</title>
9 <script 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
1186774 */
18 child = window.open(
"file_bug1186774.html",
"",
"width=100,height=100");
19 child.onload = function() {
20 setTimeout(function() {
22 child.history.pushState({},
"initial");
23 child.scrollTo(
0,
3000);
24 child.history.pushState({},
"scrolled");
25 child.scrollTo(
0,
6000);
30 child.onpopstate = function() {
31 is(Math.round(child.scrollY),
6000,
"Shouldn't have scrolled before popstate");
37 SimpleTest.waitForExplicitFinish();
38 addLoadEvent(runTest);
43 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1186774">Mozilla Bug
1186774</a>
45 <div id=
"content" style=
"display: none">