window-name-after-cross-origin-sub-frame-navigation.sub.html (619B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <!-- window.name should equal "test" after a cross-origin sub frame navigation. --> 5 <script src='/resources/testharness.js'></script> 6 <script src='/resources/testharnessreport.js'></script> 7 </head> 8 <body> 9 <script> 10 t = async_test("Test that the window name is correct"); 11 window.addEventListener("message", t.step_func_done(function(e) { 12 assert_equals(e.data, true); 13 })); 14 </script> 15 <iframe src="support/window-name-navigation.sub.html?hostname={{domains[www1]}}&shouldhavename=true&sendmessage=true"; 16 </iframe> 17 </body> 18 </html>