Skip to content

Commit

Permalink
Using external URLs isn't allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Mar 27, 2014
1 parent aa85dc3 commit 0fa8f70
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -11,13 +11,13 @@
<body>
<p>Access location object from different origins doesn't raise SECURITY_ERR exception</p>
<div id=log></div>
<script type="text/javascript">
<script>
var runTest = async_test("Accessing location object from different origins doesn't raise SECURITY_ERR exception").step_func_done(function() {
var frame = document.getElementById('testframe');
frame.setAttribute('onload', '');
frame.contentWindow.location = 'http://dev.w3.org/';
frame.contentWindow.location = 'http://{{domains[www1]}}:{{ports[http][0]}}/'
});
</script>
<iframe id='testframe' src="http://www.w3.org/" onload="runTest()">Test Frame</iframe>
<iframe id='testframe' src="http://{{domains[www]}}:{{ports[http][0]}}/" onload="runTest()">Test Frame</iframe>
</body>
</html>

0 comments on commit 0fa8f70

Please sign in to comment.