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

Unified Diff: LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.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/sandboxed-iframe-blocks-access-from-parent.html
diff --git a/LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html b/LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html
index 7058e650fb38efa4c97067a13a3cfae940f789ad..28a79fe08d993e34e933e920f9d1cc901839fb29 100644
--- a/LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html
+++ b/LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html
@@ -8,9 +8,9 @@
}
function test() {
- var test = document.getElementById('testframe');
+ var testFrameWindow = window.frames['testframe'];
try {
- var location = test.contentWindow.location.href;
+ var location = testFrameWindow.location.href;
} catch (e) {
alert("PASS: Cross-origin access to the Location object threw an exception.");
}
@@ -23,6 +23,6 @@
containing document shouldn't have script access to. This test passes if an
exception is thrown upon the access violation.</p>
- <iframe src="resources/blank.html" id="testframe" sandbox onload="test();"></iframe>
+ <iframe src="resources/blank.html" name="testframe" sandbox onload="test();"></iframe>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698