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

Unified Diff: LayoutTests/http/tests/security/cross-frame-access-document-direct.html

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 years, 9 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-document-direct.html
diff --git a/LayoutTests/http/tests/security/cross-frame-access-document-direct.html b/LayoutTests/http/tests/security/cross-frame-access-document-direct.html
index f9be3b8a546b61eb02a0a270b512900b94cdceb4..a017fba012643b24bf01eeb18d2910de3427e0f2 100644
--- a/LayoutTests/http/tests/security/cross-frame-access-document-direct.html
+++ b/LayoutTests/http/tests/security/cross-frame-access-document-direct.html
@@ -14,11 +14,11 @@
}
// Post message to victim to check if it was accessed.
- document.getElementById('theFrame').contentWindow.postMessage("test", "*");
+ window.frames['theFrame'].postMessage("test", "*");
}, false);
</script>
<body>
<p>Test cross-origin direct document access.</p>
- <iframe id="theFrame" src="resources/cross-frame-iframe-for-document-direct-test.html"></iframe>
+ <iframe name="theFrame" src="resources/cross-frame-iframe-for-document-direct-test.html"></iframe>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698