OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <meta charset=utf-8> |
| 3 <meta name="timeout" content="long"> |
| 4 <title>Cross-origin behavior of Window and Location on new Window</title> |
| 5 <link rel="author" title="Bobby Holley (:bholley)" href="bobbyholley@gmail.com"> |
| 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#security-window"> |
| 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#security-location
"> |
| 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <div id=log></div> |
| 11 <script> |
| 12 setup({explicit_done: true}); |
| 13 |
| 14 window.addEventListener('message', function onmessage(evt) { |
| 15 window.removeEventListener('message', onmessage); |
| 16 test(function() { |
| 17 var results = evt.data; |
| 18 assert_true(results.length > 0, 'Need results'); |
| 19 results.forEach(function(r) { assert_true(r.pass, r.message); }); |
| 20 }, "Cross-origin object identity preserved across document.domain"); |
| 21 win.close(); |
| 22 done(); |
| 23 }); |
| 24 var win = window.open('win-documentdomain.sub.html'); |
| 25 </script> |
OLD | NEW |