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

Accept permission #25

Open
inkeliz opened this issue Sep 28, 2021 · 2 comments
Open

Accept permission #25

inkeliz opened this issue Sep 28, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@inkeliz
Copy link

inkeliz commented Sep 28, 2021

Some API's needs a permission from the user, such as Notfication API, Credential Management API, Geolocation API. There's many APIs that need explicit permission from the user.

In those case, the test "fails", because the user didn't accept the API permission. Of course, it should have a way to test this
fail condition (when user doesn't accept).

But, how I can test when the user accepts?

The current test doesn't seems to accept any permission. :\

@agnivade
Copy link
Owner

agnivade commented Oct 2, 2021

You should be able to use the GrantPermissions API to grant the permission.

I think this would need an API call to be exposed from wasmbrowsertest itself. If you are open to it, I'd love to see a design API spec for this.

@joeblew99
Copy link

Would be good if this was done.

@agnivade agnivade added the enhancement New feature or request label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants