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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt

Issue 2705783004: Throw security errors for attribute access on detached windows. (Closed)
Patch Set: Bad tests Created 3 years, 10 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: third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt
index 03fb6d556ca19bfd2cce13e1a947af2775d2e589..a2a72bae69e5aea59ad29f606fc0e3e1267e0ac8 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt
@@ -16,15 +16,15 @@ PASS window.cached_applicationCache.status is 0
PASS window.cached_history.length is 0
PASS window.cached_history.scrollRestoration is 'auto'
PASS window.cached_history.state is null
-PASS window.cached_location.hash is undefined
-PASS window.cached_location.host is undefined
-PASS window.cached_location.hostname is undefined
-PASS window.cached_location.href is undefined
-PASS window.cached_location.origin is undefined
-PASS window.cached_location.pathname is undefined
-PASS window.cached_location.port is undefined
-PASS window.cached_location.protocol is undefined
-PASS window.cached_location.search is undefined
+FAIL window.cached_location.hash should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.host should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.hostname should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.href should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.origin should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.pathname should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.port should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.protocol should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
+FAIL window.cached_location.search should be undefined. Threw exception SecurityError: Blocked a frame with origin "file://" from accessing a detached cross-origin frame
PASS window.cached_location_ancestorOrigins.length is 1
PASS window.cached_locationbar.visible is false
PASS window.cached_menubar.visible is false

Powered by Google App Engine
This is Rietveld 408576698