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/security/javascriptURL/xss-ALLOWED-to-javascript-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 window.onload = function() 5 window.onload = function()
6 { 6 {
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.dumpChildFramesAsText(); 9 testRunner.dumpChildFramesAsText();
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 window[0][0].document.getElementById('accessMe').innerHTML = 'PA SS: Cross frame access to a javascript: URL 2 levels deep was allowed!'; 63 window[0][0].document.getElementById('accessMe').innerHTML = 'PA SS: Cross frame access to a javascript: URL 2 levels deep was allowed!';
64 log('PASS: Cross frame access to a javascript: URL 2 levels deep was allowed!'); 64 log('PASS: Cross frame access to a javascript: URL 2 levels deep was allowed!');
65 } catch (e) { 65 } catch (e) {
66 log('FAIL: Cross frame access to a javascript: URL 2 levels deep was denied.'); 66 log('FAIL: Cross frame access to a javascript: URL 2 levels deep was denied.');
67 } 67 }
68 } 68 }
69 </script> 69 </script>
70 </head> 70 </head>
71 <body> 71 <body>
72 <p>This tests that the main frame has access to a javascript: URL loaded in an iframe inside another javascript: URL loaded iframe.</p> 72 <p>This tests that the main frame has access to a javascript: URL loaded in an iframe inside another javascript: URL loaded iframe.</p>
73 <iframe id="aFrame" style="width: 500px; height: 300px;"></iframe> 73 <iframe id="aFrame" name="aFrame" style="width: 500px; height: 300px;"></ifr ame>
74 <pre id='console'></pre> 74 <pre id='console'></pre>
75 </body> 75 </body>
76 </html> 76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698