Skip to content

How to allow <all_urls> optional permission #5054

@Manvel

Description

@Manvel

I'm having trouble testing additional permission request of my extension.

The following is set as optional permission in the manifest.json file:

"optional_permissions": ["<all_urls>"],

And in the extension I do request and revoke the permission using:

chrome.permissions.request({"origins": ["<all_urls>"]}) // Request
chrome.permissions.remove({"origins": ["<all_urls>"]}); // Revoke

I would like to be able to test the extension behavior when permission is successfully requested and revoked, but there seem to be no way to fetch permission dialog event and accept, also it doesn't seem to be possible to do using browserContext.overridePermissions .

Any idea how that can be done?

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