| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Location interface Security</title> | |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> | |
| 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#security-loca
tion" /> | |
| 7 <meta name="assert" content="access location object from different origins d
oesn't raise SECURITY_ERR exception" /> | |
| 8 <script src="/resources/testharness.js"></script> | |
| 9 <script src="/resources/testharnessreport.js"></script> | |
| 10 </head> | |
| 11 <body> | |
| 12 <p>Access location object from different origins doesn't raise SECURITY_ERR
exception</p> | |
| 13 <div id=log></div> | |
| 14 <script src="/common/get-host-info.sub.js"></script> | |
| 15 <script> | |
| 16 var runTest = async_test("Accessing location object from different origins
doesn't raise SECURITY_ERR exception").step_func_done(function() { | |
| 17 var frame = document.getElementById('testframe'); | |
| 18 frame.setAttribute('onload', ''); | |
| 19 frame.contentWindow.location = get_host_info().HTTP_REMOTE_ORIGIN + "/"; | |
| 20 }); | |
| 21 </script> | |
| 22 <iframe id='testframe' onload="runTest()">Test Frame</iframe> | |
| 23 <script> | |
| 24 document.getElementById('testframe').setAttribute('src', get_host_info().H
TTP_REMOTE_ORIGIN + '/'); | |
| 25 </script> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |