Bug 218154 - Web Inspector: Registered but missing Service Workers not shown
Summary: Web Inspector: Registered but missing Service Workers not shown
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-24 14:17 PDT by Simon
Modified: 2020-10-26 14:37 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!