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

Side by Side Diff: LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception-expected.txt

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, 6 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
OLDNEW
1 CONSOLE ERROR: Unrecognized Content-Security-Policy directive 'suborigin'.
2
3 CONSOLE ERROR: Unrecognized Content-Security-Policy directive 'suborigin'.
4
5 Cross-origin access to 'window.open' and 'window.opener' should throw a Security Error. 1 Cross-origin access to 'window.open' and 'window.opener' should throw a Security Error.
6 2
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
8 4
9 5
10 FAIL frame.contentWindow.open() should throw SecurityError: Blocked a frame with origin "suborigin+foobar+http://127.0.0.1:8000" from accessing a cross-origin f rame.. Was undefined. 6 FAIL frame.contentWindow.open() should throw SecurityError: Blocked a frame with origin "http://foobar_127.0.0.1:8000" from accessing a cross-origin frame.. Was undefined.
11 FAIL frame.contentWindow.opener = 1; should throw SecurityError: Failed to set t he 'opener' property on 'Window': Blocked a frame with origin "suborigin+foobar+ http://127.0.0.1:8000" from accessing a cross-origin frame.. Was 1. 7 FAIL frame.contentWindow.opener = 1; should throw SecurityError: Failed to set t he 'opener' property on 'Window': Blocked a frame with origin "http://foobar_127 .0.0.1:8000" from accessing a cross-origin frame.. Was 1.
12 PASS successfullyParsed is true 8 PASS successfullyParsed is true
13 9
14 TEST COMPLETE 10 TEST COMPLETE
15 11
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698