no-secure-context.tentative.html (490B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="/common/get-host-info.sub.js"></script> 6 <div id=log></div> 7 <script> 8 promise_test(async t => { 9 const response = await fetch(get_host_info().HTTPS_REMOTE_ORIGIN+"/html/document-isolation-policy/resources/nothing-no-corp.js", {mode: "no-cors"}); 10 assert_equals(response.type, "opaque"); 11 }, "DIP requires a secure context"); 12 </script>