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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/block-does-not-leak-location.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/xssAuditor/block-does-not-leak-location.html
diff --git a/LayoutTests/http/tests/security/xssAuditor/block-does-not-leak-location.html b/LayoutTests/http/tests/security/xssAuditor/block-does-not-leak-location.html
index 1843666a664c7c47b90239ce188a599bf6071fb2..085c8844b7476c64a32a496368a08641fec48a70 100644
--- a/LayoutTests/http/tests/security/xssAuditor/block-does-not-leak-location.html
+++ b/LayoutTests/http/tests/security/xssAuditor/block-does-not-leak-location.html
@@ -11,8 +11,7 @@
function checkFrames() {
shouldBeNull('xssed.contentDocument');
shouldBe('xssed.contentDocument', 'crossorigin.contentDocument');
- shouldBeUndefined('xssed.contentWindow.location.href');
- shouldBe('xssed.contentWindow.location.href', 'crossorigin.contentWindow.location.href');
+ shouldThrow('xssed.contentWindow.location.href');
finishJSTest();
}

Powered by Google App Engine
This is Rietveld 408576698