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/suborigins/crossorigin/suborigin-cross-origin-window-event-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-event-exception.php
diff --git a/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php b/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
index 0d8c0b7d321b3c182aad8a569f3f794601c3619f..3e8c78ac79b60361b85d66bdcdb4a1597e82d3b0 100644
--- a/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
+++ b/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
@@ -14,8 +14,8 @@ header("Content-Security-Policy: suborigin foobar");
var frame = document.querySelector('iframe');
window.onload = function () {
- shouldThrow("frame.contentWindow.event", '"SecurityError: Blocked a frame with origin \\"suborigin+foobar+http://127.0.0.1:8000\\" from accessing a cross-origin frame."');
- shouldThrow("frame.contentWindow.event = 1;", '"SecurityError: Blocked a frame with origin \\"suborigin+foobar+http://127.0.0.1:8000\\" from accessing a cross-origin frame."');
+ shouldThrow("frame.contentWindow.event", '"SecurityError: Blocked a frame with origin \\"http://foobar_127.0.0.1:8000\\" from accessing a cross-origin frame."');
+ shouldThrow("frame.contentWindow.event = 1;", '"SecurityError: 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