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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/history/history-length-append-subframe-no-hash.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> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <pre id="console"></pre> 8 <pre id="console"></pre>
9 9
10 <script> 10 <script>
(...skipping 14 matching lines...) Expand all
25 25
26 if (location.hash.indexOf('wentBack') == -1) { 26 if (location.hash.indexOf('wentBack') == -1) {
27 // Run else code path after going back. 27 // Run else code path after going back.
28 location.hash = 'wentBack'; 28 location.hash = 'wentBack';
29 29
30 setFrameSrc(); 30 setFrameSrc();
31 31
32 // Navigate forward and back to create forward navigation entry. 32 // Navigate forward and back to create forward navigation entry.
33 // Must be done outside the load handler to generate history entry. 33 // Must be done outside the load handler to generate history entry.
34 window.setTimeout(function() { 34 window.setTimeout(function() {
35 location.href = 'data:text/html,<body onload="history.back()">Mu st not see this text!!!</body>'; 35 location.href = 'resources/back-on-load.html';
36 }, 0); 36 }, 0);
37 } else { 37 } else {
38 window.setTimeout(setFrameSrcAndfinishTest, 100); 38 window.setTimeout(setFrameSrcAndfinishTest, 100);
39 } 39 }
40 } 40 }
41 41
42 function setFrameSrc() { 42 function setFrameSrc() {
43 document.querySelector('iframe').src = 'about:blank'; 43 document.querySelector('iframe').src = 'about:blank';
44 } 44 }
45 45
46 function setFrameSrcAndfinishTest() { 46 function setFrameSrcAndfinishTest() {
47 document.querySelector('iframe').src = 'about:blank'; 47 document.querySelector('iframe').src = 'about:blank';
48 testRunner.dumpBackForwardList(); 48 testRunner.dumpBackForwardList();
49 finishJSTest(); 49 finishJSTest();
50 } 50 }
51 </script> 51 </script>
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698