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

Side by Side Diff: LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level.html

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpChildFramesAsText(); 6 testRunner.dumpChildFramesAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 function loaded() { 9 function loaded() {
10 var innerURL = "data:text/html,<html>" 10 var innerURL = "data:text/html,<html>"
(...skipping 21 matching lines...) Expand all
32 + "</body>" 32 + "</body>"
33 + "</html>"; 33 + "</html>";
34 34
35 var iframe = document.getElementById("aFrame"); 35 var iframe = document.getElementById("aFrame");
36 iframe.src = url; 36 iframe.src = url;
37 } 37 }
38 </script> 38 </script>
39 </head> 39 </head>
40 <body onload="loaded();"> 40 <body onload="loaded();">
41 <p>This tests that a data: URL loaded in an iframe inside another data: URL loaded iframe doesn't have access to the main frame.</p> 41 <p>This tests that a data: URL loaded in an iframe inside another data: URL loaded iframe doesn't have access to the main frame.</p>
42 <iframe id="aFrame" style="width: 500px; height: 300px;"></iframe> 42 <iframe id="aFrame" name="aFrame" style="width: 500px; height: 300px;"></ifr ame>
43 <p id='accessMe'>PASS: Cross frame access from a data: URL inside another da ta: URL was denied.</p> 43 <p id='accessMe'>PASS: Cross frame access from a data: URL inside another da ta: URL was denied.</p>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698