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

Side by Side Diff: LayoutTests/http/tests/security/xss-DENIED-window-index-assign.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 <script> 1 <script>
2 if (window.testRunner) 2 if (window.testRunner)
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 4
5 window[0] = { 5 window[0] = {
6 a: "1", 6 a: "1",
7 f: function() { 7 f: function() {
8 alert("FAIL: Child called parent.f()"); 8 alert("FAIL: Child called parent.f()");
9 } 9 }
10 }; 10 };
11 </script> 11 </script>
12 <iframe src="data:text/html,<script>alert(parent[0].a);</script><script>parent[0 ].f();</script>"></iframe><br> 12 <iframe src="data:text/html,<script>try { alert(parent[0].a); } catch (e) { aler t('PASS: Access to parent[0].a threw exception.'); }</script><script>try { paren t[0].f(); } catch (e) { alert('PASS: Access to parent[0].f() threw exception.'); }</script>"></iframe><br>
13 This test passes if the access is forbidden. 13 This test passes if the access is forbidden.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698