| OLD | NEW | 
|   1 <html> |   1 <html> | 
|   2 <head> |   2 <head> | 
|   3     <script> |   3     <script> | 
|   4         function loaded() |   4         function loaded() | 
|   5         { |   5         { | 
|   6             var beenHere = document.getElementById("beenHere"); |   6             var beenHere = document.getElementById("beenHere"); | 
|   7             var input = document.getElementById("input"); |   7             var input = document.getElementById("input"); | 
|   8  |   8  | 
|   9             if (beenHere.value) { |   9             if (beenHere.value) { | 
|  10                 var result = "FAIL"; |  10                 var result = "FAIL"; | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|  24             if (window.testRunner) { |  24             if (window.testRunner) { | 
|  25                 testRunner.dumpAsText(); |  25                 testRunner.dumpAsText(); | 
|  26                 testRunner.waitUntilDone(); |  26                 testRunner.waitUntilDone(); | 
|  27             } |  27             } | 
|  28  |  28  | 
|  29             beenHere.value = "FAIL"; |  29             beenHere.value = "FAIL"; | 
|  30  |  30  | 
|  31             input.value = "FAIL"; |  31             input.value = "FAIL"; | 
|  32  |  32  | 
|  33             var form = document.getElementById("form"); |  33             var form = document.getElementById("form"); | 
|  34              |  34  | 
|  35             // Submit form in a timeout to make sure that we create a new back/f
    orward list item.             |  35             // Submit form in a timeout to make sure that we create a new back/f
    orward list item. | 
|  36             setTimeout(function() {form.submit();}, 0); |  36             setTimeout(function() {form.submit();}, 0); | 
|  37         } |  37         } | 
|  38     </script> |  38     </script> | 
|  39 </head> |  39 </head> | 
|  40 <!-- the unload handler keeps this page out of the B/F cache --> |  40 <!-- the unload handler keeps this page out of the B/F cache --> | 
|  41 <body onunload="" onload="loaded()"> |  41 <body onunload="" onload="loaded()"> | 
|  42     <p> |  42     <p> | 
|  43         This is a test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=14
    400">http://bugs.webkit.org/show_bug.cgi?id=14400</a> |  43         This is a test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=14
    400">http://bugs.webkit.org/show_bug.cgi?id=14400</a> | 
|  44         Assertion failure (SHOULD NEVER BE REACHED) going back on YouTube</i>. |  44         Assertion failure (SHOULD NEVER BE REACHED) going back on YouTube</i>. | 
|  45     </p> |  45     </p> | 
|  46     <p> |  46     <p> | 
|  47         Test result: <span id="result">test did not complete</span> |  47         Test result: <span id="result">test did not complete</span> | 
|  48     </p> |  48     </p> | 
|  49     <button type="button" name="foo">Button</button> |  49     <button type="button" name="foo">Button</button> | 
|  50     <input id="input" type="button" name="foo" value="PASS"> |  50     <input id="input" type="button" name="foo" value="PASS"> | 
|  51     <input id="beenHere"> |  51     <input id="beenHere"> | 
|  52     <form action="data:text/html,<script>history.back()</script>" method="POST" 
    id="form"></form> |  52     <form action="../../resources/back.html" method="POST" id="form"></form> | 
|  53 </body> |  53 </body> | 
|  54 </html> |  54 </html> | 
| OLD | NEW |