Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /server-timing/service_worker_idl.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<head>
<meta charset='utf-8' />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
(async () => {
const scope = 'does/not/exist'
let registration = await navigator.serviceWorker.getRegistration(scope)
if (registration)
await registration.unregister()
registration = await navigator.serviceWorker.register('./sw.js', {scope})
fetch_tests_from_worker(registration.installing)
})()
</script>
</head>