Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to allow <all_urls> optional permission #5054

Closed
Manvel opened this issue Oct 19, 2019 · 6 comments
Closed

How to allow <all_urls> optional permission #5054

Manvel opened this issue Oct 19, 2019 · 6 comments

Comments

@Manvel
Copy link

Manvel commented Oct 19, 2019

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?

@agomez0207
Copy link

Hello, we had a similar problem, there is no way to fetch permission dialog event and accept because that dialog is not triggered by any JS on the page, is triggered by Chrome API

chrome.permissions.request

We used this library for nodejs in order to simulate tab and enter keys for allow/disallow the permission.

@guanbinrui
Copy link

guanbinrui commented Mar 13, 2020

Hello, we had a similar problem, there is no way to fetch permission dialog event and accept because that dialog is not triggered by any JS on the page, is triggered by Chrome API

chrome.permissions.request

We used this library for nodejs in order to simulate tab and enter keys for allow/disallow the permission.

@agomez0207 The permission dialog looks cannot approve by the keyboard.

@stale
Copy link

stale bot commented Jun 26, 2022

We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.

@stale stale bot added the unconfirmed label Jun 26, 2022
@stale
Copy link

stale bot commented Jul 26, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

@stale stale bot closed this as completed Jul 26, 2022
@dbjpanda
Copy link

Any update here?

@smashedr
Copy link

Was this resolve? I can't find the documentation on this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants