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

Side by Side Diff: LayoutTests/http/tests/security/xss-DENIED-htmlelelment-with-iframe-proto.html

Issue 19932002: Throw exceptions on all failed cross-origin access checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test. Created 7 years, 5 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 </head> 4 </head>
5 <body> 5 <body>
6 <iframe src="http://localhost:8000/security/resources/iframe-with-element.html" style=""> 6 <iframe src="http://localhost:8000/security/resources/iframe-with-element.html" style="">
7 </iframe> 7 </iframe>
8 <pre id="console"></pre> 8 <pre id="console"></pre>
9 <script> 9 <script>
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 12
13 log("Tests that making other frame window a prototype doesn't expose that window subframe"); 13 log("Tests that making other frame window a prototype doesn't expose that window subframe");
14 14
15 targetWindow = frames[0]; 15 targetWindow = frames[0];
16 16
17 window.onload = function() { 17 window.onload = function() {
18 __proto__ = targetWindow; 18 __proto__ = targetWindow;
19 shouldBeUndefined('targetWindow.myinput'); 19 shouldThrowException('targetWindow.myinput');
20 } 20 }
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698