6 var beenHere
= document
.getElementById("beenHere");
7 var input
= document
.getElementById("input");
11 // Button value is not restored.
12 if (input
.value
== "PASS") {
13 beenHere
.value
= "PASS";
17 document
.getElementById("result").innerText
= result
;
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
24 if (window
.testRunner
) {
25 testRunner
.dumpAsText();
26 testRunner
.waitUntilDone();
29 beenHere
.value
= "FAIL";
33 var form
= document
.getElementById("form");
35 // Submit form in a timeout to make sure that we create a new back/forward list item.
36 setTimeout(function() {form
.submit();}, 0);
40 <!-- the unload handler keeps this page out of the B/F cache -->
41 <body onunload=
"" onload=
"loaded()">
43 This is a test for
<i><a href=
"http://bugs.webkit.org/show_bug.cgi?id=14400">http://bugs.webkit.org/show_bug.cgi?id=
14400</a>
44 Assertion failure (SHOULD NEVER BE REACHED) going back on YouTube
</i>.
47 Test result:
<span id=
"result">test did not complete
</span>
49 <button type=
"button" name=
"foo">Button
</button>
50 <input id=
"input" type=
"button" name=
"foo" value=
"PASS">
52 <form action=
"data:text/html,<script>history.back()</script>" method
="POST" id
="form"></form
>