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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated.html

Issue 2706923002: Rework security checks to be based on Window rather than Frame. (Closed)
Patch Set: Do not hardcode V8Window::wrapperTypeInfo Created 3 years, 7 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-navigated.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated.html b/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated.html
index ef964a1d64692ef746bbe6f72002053c0664feda..2d0711778393e7db6cd667fb09df66a6aa20d01b 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated.html
@@ -14,9 +14,6 @@ function insertExpectedResult(path, expected)
if (path.length < 2)
return;
var propertyDir = path.slice(0, -1).join('.');
- // Cached Location properties become undefined.
- if (propertyDir == "location")
- expected = "undefined";
var cachedPropertyDir = "cached_" + propertyDir.replace('.', '_');
window[cachedPropertyDir] = eval("childWindow." + propertyDir);
propertiesToVerify.push({
@@ -32,7 +29,8 @@ function runTest()
childWindow = frame.contentWindow;
// Have expected results assume that the frame hasn't been closed (=> window.closed = false.)
collectProperties(document.getElementById("src_frame").contentWindow, false);
- frame.src = 'about:blank';
+ frame.onload = testFrameLoaded;
+ frame.src = 'data:text/plain,';
}
function testFrameLoaded()
@@ -47,6 +45,6 @@ function testFrameLoaded()
</head>
<body onload="runTest()">
<iframe id="src_frame"></iframe>
-<iframe id="test_frame" src="resources/blank.html" onload="testFrameLoaded()"></iframe>
+<iframe id="test_frame"></iframe>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698