Context
Many extensions which extend DevTools can work even if there is no page being inspected:
Running these extensions in service workers would be a breaking change as it may break assumptions made by developers.
Proposal
Allow opt-in to running devtools_page for service workers with a devtools_supports_service_worker: true key in the manifest.
The devtools.inspectedWindow.tabId property would be undefined.
We could expose a context type field (e.g devtools.inspectedWindow.contextType) to help extensions identify this scenario.
Context
Many extensions which extend DevTools can work even if there is no page being inspected:
Running these extensions in service workers would be a breaking change as it may break assumptions made by developers.
Proposal
Allow opt-in to running
devtools_pagefor service workers with adevtools_supports_service_worker: truekey in the manifest.The
devtools.inspectedWindow.tabIdproperty would be undefined.We could expose a context type field (e.g
devtools.inspectedWindow.contextType) to help extensions identify this scenario.