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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/state-save-of-detached-control.html

Issue 2694903007: Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: creis comments 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body onload="runTest()"> 6 <body onload="runTest()">
7 <p>Test to NOT save state of a detached form control.</p> 7 <p>Test to NOT save state of a detached form control.</p>
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <input id=emptyOnFirstVisit> 10 <input id=emptyOnFirstVisit>
11 <form action="data:text/html,<script>history.back()&lt;/script>" id=form1> 11 <form action="../../resources/back.html" id=form1>
12 <input name=user id=input2> 12 <input name=user id=input2>
13 </form> 13 </form>
14 14
15 <script> 15 <script>
16 var i1; 16 var i1;
17 17
18 function runTest() 18 function runTest()
19 { 19 {
20 var form1 = document.getElementById('form1'); 20 var form1 = document.getElementById('form1');
21 var state = document.getElementById('emptyOnFirstVisit'); 21 var state = document.getElementById('emptyOnFirstVisit');
(...skipping 13 matching lines...) Expand all
35 // Second visit. 35 // Second visit.
36 shouldBe('document.getElementById("input2").value', '""'); // Not 'value 1'. 36 shouldBe('document.getElementById("input2").value', '""'); // Not 'value 1'.
37 37
38 if (window.testRunner) 38 if (window.testRunner)
39 testRunner.notifyDone(); 39 testRunner.notifyDone();
40 } 40 }
41 } 41 }
42 </script> 42 </script>
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698