serviceworker-report-only.https.sub.html (548B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <!-- Test the 'connect-src' directive on service workers in report-only mode 5 --> 6 <script> 7 promise_test(async t => { 8 let r = await navigator.serviceWorker.register( 9 "./support/connect-src-self-report-only.sub.js?id={{uuid()}}", 10 {scope: "./support/blank.html"}); 11 t.add_cleanup(_ => r.unregister()); 12 let sw = r.active || r.installing || r.waiting; 13 await fetch_tests_from_worker(sw); 14 }); 15 </script>