Skip to content

Proposal: allow webRequest with background.persistent: false / SW #148

@carlosjeurissen

Description

@carlosjeurissen

Currently the webRequest and webRequestBlocking permission require a persistent background page. This seems to be an arbitrary limitation. The proposal is to allow these APIs under a non-persistent / SW API as well.

Use cases are using this API in extension popups, or in contentScripts. The background-page doesn't need to keep running in the background for this to be useful.

Edit 2022-09-01: Firefox currently allows loading extensions with thewebRequest permission when persistent is set to false in mv2. In mv3, the persistent key is unsupported.

Related: a proposal for adding support for the webRequest API in non-persistent background pages has been added to the chrome issue tracker by @Rob--W https://bugs.chromium.org/p/chromium/issues/detail?id=447270

Metadata

Metadata

Assignees

No one assigned

    Labels

    implemented: firefoxImplemented in FirefoxinconsistencyInconsistent behavior across browsersproposalProposal for a change or new featuretopic: dnrRelated to declarativeNetRequest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions