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

Side by Side Diff: LayoutTests/http/tests/security/resources/cross-frame-iframe-callback-explicit-domain-DENY.html

Issue 19095003: Throw 'SecurityError' upon cross-origin Location access. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. 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 src="cross-frame-access.js"></script> 1 <script src="cross-frame-access.js"></script>
2 <body> 2 <body>
3 <div id=console></div> 3 <pre id=console></pre>
4 <script> 4 <script>
5 var parentWindow = window.parent; 5 var parentWindow = window.parent;
6 parentWindow.testFunction = function() 6 parentWindow.testFunction = function()
7 { 7 {
8 shouldBeFalse("canGet('parentWindow.location.href')"); 8 shouldBeFalse("canGet('parentWindow.location.href')");
9 shouldBeTrue("accessThrowsException('parentWindow.location.href')");
9 if (window.testRunner) 10 if (window.testRunner)
10 testRunner.notifyDone(); 11 testRunner.notifyDone();
11 } 12 }
12 var func = parentWindow.testFunction; 13 var func = parentWindow.testFunction;
13 document.domain = document.domain; // after this window.parent properties are in accessible 14 document.domain = document.domain; // after this window.parent properties are in accessible
14 func(); 15 func();
15 </script> 16 </script>
16 17
17 18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698