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

Unified Diff: LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception.php

Issue 1109633002: Basic experimental suborigin CSP directive and SecurityOrigin mods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on ToT Created 5 years, 7 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/suborigins/crossorigin/suborigin-cross-origin-window-open-exception.php
diff --git a/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception.php b/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception.php
index f59b08ad9633a4f166d616a6dee2eb82a0360184..37408f41fe48c873718d13d58b7f1aae8f32bd9a 100644
--- a/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception.php
+++ b/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception.php
@@ -14,8 +14,8 @@ header("Content-Security-Policy: suborigin foobar");
window.jsTestIsAsync = true;
var frame = document.querySelector('iframe');
window.onload = function () {
- shouldThrow("frame.contentWindow.open()", '"SecurityError: Blocked a frame with origin \\"suborigin+foobar+http://127.0.0.1:8000\\" from accessing a cross-origin frame."');
- shouldThrow("frame.contentWindow.opener = 1;", '"SecurityError: Failed to set the \'opener\' property on \'Window\': Blocked a frame with origin \\"suborigin+foobar+http://127.0.0.1:8000\\" from accessing a cross-origin frame."');
+ shouldThrow("frame.contentWindow.open()", '"SecurityError: Blocked a frame with origin \\"http://foobar_127.0.0.1:8000\\" from accessing a cross-origin frame."');
+ shouldThrow("frame.contentWindow.opener = 1;", '"SecurityError: Failed to set the \'opener\' property on \'Window\': Blocked a frame with origin \\"http://foobar_127.0.0.1:8000\\" from accessing a cross-origin frame."');
finishJSTest();
};
</script>

Powered by Google App Engine
This is Rietveld 408576698