Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/button-state-restore.html

Issue 2741513002: [Merge M-57] Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698