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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/as-object/history-navigation.html

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix Android PDF tests where PDFs should be downloaded Created 3 years, 8 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 <body onload="runTest()"> 2 <body onload="runTest()">
3 <iframe id="testframe" src="resources/left-right.html" width="100%" height="300p x" frameborder="0"></iframe> 3 <iframe id="testframe" src="resources/left-right.html" width="100%" height="300p x" frameborder="0"></iframe>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 7
8 function runTest() { 8 function runTest() {
9 if (sessionStorage.didNav) { 9 if (sessionStorage.didNav) {
10 delete sessionStorage.didNav; 10 delete sessionStorage.didNav;
11 if (window.testRunner) 11 if (window.testRunner)
12 testRunner.notifyDone(); 12 testRunner.notifyDone();
13 } else { 13 } else {
14 // Navigate a timeout to make sure we generate a history entry that we 14 // Navigate a timeout to make sure we generate a history entry that we
15 // can go back to. 15 // can go back to.
16 setTimeout(function() {location.href = 'data:text/html,<script>history.b ack();</' + 'script>';}, 0); 16 setTimeout(function() {location.href = '../../resources/back.html';}, 0) ;
17 sessionStorage.didNav = true; 17 sessionStorage.didNav = true;
18 } 18 }
19 } 19 }
20 </script> 20 </script>
21 </body> 21 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698