document-domain-no-impact.html (736B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <script src="/resources/testharness.js"></script> 6 <script src="resource-loaders.js"></script> 7 <script src="entry-invariants.js"></script> 8 <body> 9 <script> 10 const path = location.origin + 11 "/resource-timing/resources/iframe-setdomain.sub.html"; 12 attribute_test_with_validator(load.iframe, path, 13 el => { 14 try { 15 el.contentWindow.document; 16 throw new Error("iframe document.domain was not set"); 17 } catch(error) { 18 if (error.name != "SecurityError") { 19 throw(error); 20 } 21 } 22 }, 23 invariants.assert_tao_pass_no_redirect_http, 24 "test that document.domain being set doesn't have an impact on the " + 25 "resource timing entry." 26 ); 27 </script>