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> |