Bug 218154

Summary: Web Inspector: Registered but missing Service Workers not shown
Product: WebKit Reporter: Simon <simon_c>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bburg, inspector-bugzilla-changes, smoley, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.15   

Description Simon 2020-10-24 14:17:14 PDT
Sorry if this is a known issue/dupe, I did a few searches and couldn't find anything though.

Safari 14, and STP on Mac doesn't show registered, but missing (404) Service Workers in either the Web Inspector or the Develop->Service Workers menu. Seems as though all registrations—resolved or no—should still be shown somewhere to allow unregistration/management without having to resort to the console?

Thanks!
Comment 1 Smoley 2020-10-26 14:18:05 PDT
Thanks for filing, I'll route this to the right folks. If you have a test case or any other info to help make this readily reproducible please add it here.
Comment 2 Radar WebKit Bug Importer 2020-10-26 14:18:19 PDT
<rdar://problem/70694789>
Comment 3 Simon 2020-10-26 14:37:37 PDT
Sure thing.

The simplest way to reproduce (with node and ruby installed) is probably:

- In Terminal
$ npx degit "sveltejs/sapper-template#rollup" my-app
$ cd my-app
$ npm install
$ npm run dev

- Open http://localhost:3000 in Safari, should see a registered service worker in the develop menu.
- Quit Safari
- Go back to terminal and ctrl+c

- Then in Terminal:
$ ruby -run -e httpd -- -p 3000

- Open Safari and again go to http://localhost:3000, in Develop there won't be any service workers shown.
- You should see a 404 response for /service-worker.js from WEBrick

I think that's it, let me know if you need any more info.

Cheers!