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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/resources/cross-frame-iframe-callback-explicit-domain-DENY.html
diff --git a/LayoutTests/http/tests/security/resources/cross-frame-iframe-callback-explicit-domain-DENY.html b/LayoutTests/http/tests/security/resources/cross-frame-iframe-callback-explicit-domain-DENY.html
index 52ee51f31287e67c8679c0792c710f1bd06a5969..6e919b76435b06ecd71ca1ca1023d350b19f98a3 100644
--- a/LayoutTests/http/tests/security/resources/cross-frame-iframe-callback-explicit-domain-DENY.html
+++ b/LayoutTests/http/tests/security/resources/cross-frame-iframe-callback-explicit-domain-DENY.html
@@ -1,11 +1,12 @@
<script src="cross-frame-access.js"></script>
<body>
-<div id=console></div>
+<pre id=console></pre>
<script>
var parentWindow = window.parent;
parentWindow.testFunction = function()
{
shouldBeFalse("canGet('parentWindow.location.href')");
+ shouldBeTrue("accessThrowsException('parentWindow.location.href')");
if (window.testRunner)
testRunner.notifyDone();
}

Powered by Google App Engine
This is Rietveld 408576698