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

Side by Side Diff: LayoutTests/fast/frames/adopt-from-created-document.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 5
6 alert(1); 6 alert(1);
7 var doc = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null); 7 var doc = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
8 alert(2); 8 alert(2);
9 var ifr = doc.createElement('iframe'); 9 var ifr = doc.createElement('iframe');
10 alert(3); 10 alert(3);
11 ifr.setAttribute('src', 'javascript:alert(6)'); 11 ifr.setAttribute('src', 'javascript:alert(7)');
12 alert(4); 12 alert(4);
13 var adopted = document.adoptNode(ifr) 13 var adopted = document.adoptNode(ifr)
14 alert(5); 14 alert(5);
15 document.body.appendChild(adopted); 15 document.body.appendChild(adopted);
16 alert(7); 16 alert(6);
17 </script> 17 </script>
abarth-chromium 2014/04/02 00:54:57 I'm worried that we're going to break web sites wi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698