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

Side by Side Diff: LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-expected.txt

Issue 22985006: Throw an exception when denying access to 'Frame's 'location' setter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match. 1 CONSOLE MESSAGE: line 22: Caught exception while setting frame's location to 'ja vascript:"FAIL: this should not have been loaded."'. 'SecurityError: Blocked a f rame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.'.
2 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match. 2 CONSOLE MESSAGE: line 24: PASS: Exception was 'Blocked a frame with origin "http ://127.0.0.1:8000" from accessing a cross-origin frame.'.
3 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match. 3 CONSOLE MESSAGE: line 22: Caught exception while setting frame's location to ' j avascript:"FAIL: this should not have been loaded."'. 'SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.'.
4 CONSOLE MESSAGE: line 24: PASS: Exception was 'Blocked a frame with origin "http ://127.0.0.1:8000" from accessing a cross-origin frame.'.
5 CONSOLE MESSAGE: line 22: Caught exception while setting frame's location to 'ja vascript» :"FAIL: this should not have been loaded."'. 'SecurityError: Blo cked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin f rame.'.
6 CONSOLE MESSAGE: line 24: PASS: Exception was 'Blocked a frame with origin "http ://127.0.0.1:8000" from accessing a cross-origin frame.'.
4 7
5 8
6 -------- 9 --------
7 Frame: 'main' 10 Frame: 'main'
8 -------- 11 --------
9 This test passes as long as the word 'FAIL' and an accompanying message do not a ppear in the frame below. 12 This test passes as long as the word 'FAIL' and an accompanying message do not a ppear in the frame below.
10 13
11 -------- 14 --------
12 Frame: 'aFrame' 15 Frame: 'aFrame'
13 -------- 16 --------
14 Inner iframe. 17 Inner iframe.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698