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
Need an error for "User refused permission" #95
Comments
The Push API defines a https://w3c.github.io/push-api/#dfn-permissiondeniederror /cc @nicolassatragno @jkarlin |
Note BackgroundSync defines it too. |
The user agent is an agent of the user, is that not sufficient? If a web page could know for certain that the user is the obstacle, then it could pester the user. |
I think you're reading the description in an overly narrow way. Using |
Yes. Given how many editors are rolling their own |
I'd prefer to fix this problem by improving the description. Having more error codes that mean almost the same thing is bad for the platform. |
Using |
hello guys, i just landed here from a google search and would like to know where i can look up what the error message "The request is not allowed by the user agent or the platform in the current context." really means. for my www.videomail.io app i am trying to rephrase it so that it becomes more human friendly to read. |
@binarykitchen: that's going to be context dependant. But probably something to do with the user refusing to give permission to access an API. |
@tobie thanks - if this is w3c specified, can i know the link? i really need to know, not "probably" :) this because traffic is high on that site and such an unclear error message can impact usability ... |
@binarykitchen it's the |
Here's where it's used in Mozilla src code: http://searchfox.org/mozilla-central/search?q=notallowederror. |
@tobie i've been investigating. there have been Error objects with the name |
They were specific to geolocation. |
geolocation? huh, i cannot follow ... |
ah, weird, that's something totally different. alright, i ll ignore that for now then. thanks for the links @tobie |
In #85, a new "not allowed" error was added. The description says:
"The request is not allowed by the user agent or the platform in the current context."
This does not include the user refusing permission.
We (WEBRTC) have been using SecurityError for this, and were considering switching to this one, (w3c/mediacapture-main#317) - but the description doesn't allow it to be used for users' refusal to allow.
Should we either add an UserRefusedPermission error, or change the description of this one?
The text was updated successfully, but these errors were encountered: