service_worker_idl.https.html (561B)
1 <!DOCTYPE html> 2 <head> 3 <meta charset='utf-8' /> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 (async () => { 8 const scope = 'does/not/exist' 9 10 let registration = await navigator.serviceWorker.getRegistration(scope) 11 if (registration) 12 await registration.unregister() 13 registration = await navigator.serviceWorker.register('./sw.js', {scope}) 14 15 fetch_tests_from_worker(registration.installing) 16 })() 17 </script> 18 </head>