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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-expected.txt
diff --git a/LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-expected.txt b/LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-expected.txt
index 8460397b2e5fae9984355d2fd30a5631e34f4bd9..a430659940da3bf93c5d4b42d942d732aa7fecae 100644
--- a/LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-expected.txt
+++ b/LayoutTests/http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-expected.txt
@@ -1,6 +1,9 @@
-CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
-CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
+CONSOLE MESSAGE: line 22: Caught exception while setting frame's location to 'javascript:"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.'.
+CONSOLE MESSAGE: line 24: PASS: Exception was 'Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.'.
+CONSOLE MESSAGE: line 22: Caught exception while setting frame's location to ' javascript:"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.'.
+CONSOLE MESSAGE: line 24: PASS: Exception was 'Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.'.
+CONSOLE MESSAGE: line 22: Caught exception while setting frame's location to 'javascript :"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.'.
+CONSOLE MESSAGE: line 24: PASS: Exception was 'Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.'.
--------

Powered by Google App Engine
This is Rietveld 408576698