window-reuse-sandboxed.html (530B)
1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 </head> 8 9 <body> 10 <script> 11 var t = async_test("Window object should not be reused"); 12 13 window.onmessage = t.step_func_done(function(e) { 14 assert_equals(e.data, undefined); 15 }); 16 17 w = window.open("support/sandboxed-post-property-to-opener.html?sandbox=allow-scripts","","width=400,height=400"); 18 w.testProperty = "test"; 19 </script> 20 </body> 21 22 </html>