Index: trunk/LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html |
=================================================================== |
--- trunk/LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html (revision 168578) |
+++ trunk/LayoutTests/http/tests/security/sandboxed-iframe-blocks-access-from-parent.html (working copy) |
@@ -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> |