Skip to content

Add manifest key to allow devtools_page to run when inspecting service worker contexts #976

@oliverdunk

Description

@oliverdunk

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions