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

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

Issue 1180923003: Add window access checks for Suborigins (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 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.
2 2
3 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 ".
4 4
5 5
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. 6 PASS frame.contentWindow.open() threw exception SecurityError: Blocked a frame w ith origin "http://foobar_127.0.0.1:8000" from accessing a cross-origin frame..
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. 7 PASS frame.contentWindow.opener = 1; threw exception SecurityError: Failed to se t the 'opener' property on 'Window': Blocked a frame with origin "http://foobar_ 127.0.0.1:8000" from accessing a cross-origin frame..
8 PASS successfullyParsed is true 8 PASS successfullyParsed is true
9 9
10 TEST COMPLETE 10 TEST COMPLETE
11 11
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698