ChromeDevTools / debugger-protocol-viewer

DevTools Protocol API docs—its domains, methods, and events
https://chromedevtools.github.io/devtools-protocol/
Other
854 stars 173 forks source link

Unclear what `ServiceWorker.startWorker` does and what `scopeURL string` is expected to be #200

Open guest271314 opened 1 year ago

guest271314 commented 1 year ago

What steps will reproduce the problem?

  1. Unclear what ServiceWorker.startWorker does and what scopeURL string is expected to be.

What is the expected result?

A clear explanation of what ServiceWorker.startWorker does and whatscopeURL string is expected to be.

What happens instead of that?

I get the impression that I can start a ServiceWorker for any target. However, I have no idea how scopeURL string is fetched. Can we use a Blob URL, file: protocol, data URL to start (and control) a ServiceWorker attached to arbitrary target(s)?