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

Unified Diff: LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html

Issue 196523007: Revert of id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 28a79fe08d993e34e933e920f9d1cc901839fb29..7058e650fb38efa4c97067a13a3cfae940f789ad 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 testFrameWindow = window.frames['testframe'];
+ var test = document.getElementById('testframe');
try {
- var location = testFrameWindow.location.href;
+ var location = test.contentWindow.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" name="testframe" sandbox onload="test();"></iframe>
+ <iframe src="resources/blank.html" id="testframe" sandbox onload="test();"></iframe>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698