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

Unified Diff: LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached-expected.txt

Issue 19932002: Throw exceptions on all failed cross-origin access checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test. Created 7 years, 5 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/cross-frame-access-get-custom-property-cached-expected.txt
diff --git a/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached-expected.txt b/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached-expected.txt
index 567de588b9753d949d533487ed7945dee2ccd7bc..52a17047789e26e976d6a2398d18be426fbc4a76 100644
--- a/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached-expected.txt
+++ b/LayoutTests/http/tests/security/cross-frame-access-get-custom-property-cached-expected.txt
@@ -1,10 +1,7 @@
-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.
This test checks that caching of property accesses doesn't allow for illegal cross-frame access of a custom property. It also checks for an assertion failure that once occurred in this situation.
-PASS: getCustomProperty(targetWindow) should be 'undefined' and is.
-PASS: getCustomProperty(targetWindow) should be 'undefined' and is.
-PASS: getCustomProperty(targetWindow) should be 'undefined' and is.
+PASS: customPropertyAccessThrowsException(targetWindow) should be 'true' and is.
+PASS: customPropertyAccessThrowsException(targetWindow) should be 'true' and is.
+PASS: customPropertyAccessThrowsException(targetWindow) should be 'true' and is.

Powered by Google App Engine
This is Rietveld 408576698