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

Define what happens when the notification platform fails to show the notification #200

Open
saschanaz opened this issue Jan 17, 2024 · 1 comment

Comments

@saschanaz
Copy link
Member

What is the issue with the Notifications API Standard?

Running new Notification('\f').onerror = console.error; on browsers on Windows fails to put the notification to Action Center as Windows somehow rejects form feed character. Firefox and Chrome have different behavior:

  1. Firefox silently falls back to non-native notification. Well good, but the notification just disappears soon and the webpage will never know what really happened.
  2. Chrome just silently does nothing at all, showing no notification.

Notification has an error event handler but the spec only uses it to tell the lack of the permission. Perhaps it should also be used to tell whether the notification is failed to be created by system limitation.

@annevk
Copy link
Member

annevk commented Aug 23, 2024

It seems like that might allow for determining aspects about the system. I'd rather not reveal such information to callers.

(The error event is also exclusively used today to say something about the permission state.)

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

No branches or pull requests

2 participants