-
Notifications
You must be signed in to change notification settings - Fork 49
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
Permission check happens first on both Gecko and Blink for showNotification #207
Comments
Are you talking about https://notifications.spec.whatwg.org/#dom-serviceworkerregistration-shownotification? I think the difference is somewhat observable as the permission check |
Hmm, it seems both Blink and WebKit indeed tries to synchronously ping something outside of the current thread, although I don't think Gecko does that (as we propagate permissions beforehand). I'm not sure anyone would be actually interested to fix that, but maybe the spec shouldn't force the sync behavior either. |
Yeah, I don't think we should force synchronizing permissions whenever we can avoid it. |
Should we add a note? |
Maybe, but we're not terribly consistent about this at the moment. E.g., There might be some ways to get rid of that (at some point there was a proposal to always return " |
What is the issue with the Notifications API Standard?
The current spec in https://notifications.spec.whatwg.org/#dom-serviceworkerregistration-shownotification creates a notification in step 5 and do the permission check in step 6 where checks for options bag happen. But in reality:
This does not change any visible exception order as both throw TypeError, but maybe worth changing the spec to reflect reality?
The text was updated successfully, but these errors were encountered: