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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/history/history-back-initial-vs-final-url.html

Issue 2694903007: Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: creis comments Created 3 years, 10 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 <body> 3 <body>
4 4
5 <p>Checks that when going back to a page that frames that were navigated, that t he final URL of the frames is loaded directly, instead the initial URL. Four ale rts should appear, in this order:</p> 5 <p>Checks that when going back to a page that frames that were navigated, that t he final URL of the frames is loaded directly, instead the initial URL. Four ale rts should appear, in this order:</p>
6 6
7 <ol> 7 <ol>
8 <li>Initial URL loaded.</li> 8 <li>Initial URL loaded.</li>
9 <li>Final URL loaded.</li> 9 <li>Final URL loaded.</li>
10 <li>Going back.</li> 10 <li>Going back.</li>
11 <li>Final URL loaded.</li> 11 <li>Final URL loaded.</li>
12 </ol> 12 </ol>
13 13
14 <iframe a width="200" height="200" onunload="" src="resources/frame-initial-url. html"></iframe> 14 <iframe a width="200" height="200" onunload="" src="resources/frame-initial-url. html"></iframe>
15 15
16 <script> 16 <script>
17 if (window.testRunner) { 17 if (window.testRunner) {
18 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
19 testRunner.dumpChildFramesAsText(); 19 testRunner.dumpChildFramesAsText();
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 testRunner.dumpBackForwardList(); 21 testRunner.dumpBackForwardList();
22 } else { 22 } else {
23 // Disable page cache when not running under the DRT. 23 // Disable page cache when not running under the DRT.
24 onunload = function() {}; 24 onunload = function() {};
25 } 25 }
26 26
27 function runTest() 27 function runTest()
28 { 28 {
29 if (sessionStorage.didNav) { 29 if (sessionStorage.didNav) {
30 delete sessionStorage.didNav; 30 delete sessionStorage.didNav;
31 if (window.testRunner) 31 if (window.testRunner)
32 testRunner.notifyDone(); 32 testRunner.notifyDone();
33 } else { 33 } else {
34 // Navigate a timeout to make sure we generate a history entry that we c an go back to. 34 // Navigate a timeout to make sure we generate a history entry that we c an go back to.
35 setTimeout(function() {location.href = 'data:text/html,<script>alert("Go ing back.");history.back();</' + 'script>';}, 0); 35 setTimeout(function() {location.href = 'resources/alert-then-back.html'; }, 0);
36 sessionStorage.didNav = true; 36 sessionStorage.didNav = true;
37 } 37 }
38 }; 38 };
39 </script> 39 </script>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698