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

Side by Side Diff: LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-uncaught.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 9
10 window.addEventListener('message', function() { 10 window.addEventListener('message', function() {
(...skipping 15 matching lines...) Expand all
26 return false; // Don't handle the exception to ensure it shows up in the console. 26 return false; // Don't handle the exception to ensure it shows up in the console.
27 }; 27 };
28 28
29 function runTest() { 29 function runTest() {
30 var frame = document.getElementById('aFrame'); 30 var frame = document.getElementById('aFrame');
31 frame.location = 'javascript:"FAIL: this should not have been loaded ."'; 31 frame.location = 'javascript:"FAIL: this should not have been loaded ."';
32 } 32 }
33 </script> 33 </script>
34 </head> 34 </head>
35 <frameset rows="10%,*"> 35 <frameset rows="10%,*">
36 <frame id='main' src="data:text/html,<p>This test passes as long as the oner ror handler logs PASS to the console, and the uncaught exception reported to the console has unsanitized detail.</p>"> 36 <frame id='main' name='main' src="data:text/html,<p>This test passes as long as the onerror handler logs PASS to the console, and the uncaught exception rep orted to the console has unsanitized detail.</p>">
37 <frame id='aFrame' src='http://localhost:8000/security/resources/cross-frame -iframe.html'> 37 <frame id='aFrame' name="aFrame" src='http://localhost:8000/security/resourc es/cross-frame-iframe.html'>
38 </frameset> 38 </frameset>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698