-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Reason for deprecation of permissions.revoke() #26557
Comments
I searched on the internet about this function. It seems that, there is no alternative to this functionality. |
@postmeback i think the alternative to permissions.revoke() is to use the navigator.permissions.query() method to check whether the user given the permission to the API or not then we can use navigator.permissions.request() to check whether the permission is given or not |
The right way to search for web standard issues is not through Google but through the spec repo itself. In this case you will find w3c/permissions#46. The answer would be "it's replaced with nothing because it just doesn't make sense". We can add this info to this page. |
can't we add a new method because if someone wants to do it they can using navigator.permissions.query() |
@advitiya7 The |
@Josh-Cena thanks for the explanation some of the points i was not able to understand but i will try my best to understand them |
Also note that this page will probably be deleted at some point because I can't imagine any browser shipping it. Therefore we should probably add the rationale for the lack of the |
That seems reasonable can you what changes should i make? Or it is better left as it is? |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
who replaces this function?
What did you expect to see?
who replaces this function?
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/permissions/revoke
The text was updated successfully, but these errors were encountered: