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

Side by Side Diff: LayoutTests/http/tests/security/dataURL/xss-DENIED-to-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 src="../resources/cross-frame-access.js"></script> 3 <script src="../resources/cross-frame-access.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.dumpChildFramesAsText(); 7 testRunner.dumpChildFramesAsText();
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 } 9 }
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 log('PASS: Cross frame access to a data: URL 2 levels deep was denie d.'); 64 log('PASS: Cross frame access to a data: URL 2 levels deep was denie d.');
65 if (window.testRunner) 65 if (window.testRunner)
66 testRunner.notifyDone(); 66 testRunner.notifyDone();
67 } 67 }
68 68
69 </script> 69 </script>
70 </head> 70 </head>
71 <body onload="loaded();"> 71 <body onload="loaded();">
72 <p>This tests that the main frame doesn't have access to a data: URL loaded in an iframe inside another data: URL loaded iframe.</p> 72 <p>This tests that the main frame doesn't have access to a data: URL loaded in an iframe inside another data: URL loaded iframe.</p>
73 <button onclick="performTest()">Test</button> 73 <button onclick="performTest()">Test</button>
74 <iframe id="aFrame" style="width: 500px; height: 300px;"></iframe> 74 <iframe id="aFrame" name="aFrame" style="width: 500px; height: 300px;"></ifr ame>
75 <pre id='console'></pre> 75 <pre id='console'></pre>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698