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

Side by Side Diff: LayoutTests/http/tests/history/back-to-javascript-url-iframe.html

Issue 221673003: Defer iframe JavaScript URL evaluation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 <body> 1 <body>
2 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner) {
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 } 6 }
7 7
8 var a=document.createElement("iframe"); 8 var a=document.createElement("iframe");
9 a.src="javascript:''"; 9 a.src="javascript:''";
10 document.body.appendChild(a); 10 document.body.appendChild(a);
11 a.contentWindow.location.replace('resources/back-to-javascript-url-iframe-iframe .html') 11 setTimeout(function() {
12 a.contentWindow.location.replace('resources/back-to-javascript-url-iframe-if rame.html')
13 }, 0);
12 14
13 function test() { 15 function test() {
14 if (sessionStorage.getItem("javascript-url-iframe") == null) { 16 if (sessionStorage.getItem("javascript-url-iframe") == null) {
15 sessionStorage.setItem("javascript-url-iframe", "1"); 17 sessionStorage.setItem("javascript-url-iframe", "1");
16 location.href = "back.html"; 18 location.href = "back.html";
17 } else { 19 } else {
18 sessionStorage.removeItem("javascript-url-iframe"); 20 sessionStorage.removeItem("javascript-url-iframe");
19 if (window.testRunner) 21 if (window.testRunner)
20 testRunner.notifyDone(); 22 testRunner.notifyDone();
21 } 23 }
22 } 24 }
23 </script> 25 </script>
24 </body> 26 </body>
25 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698