8000 Should persistent notifications be associated with service worker registration or the scope? · Issue #205 · whatwg/notifications · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Should persistent notifications be associated with service worker registration or the scope? #205
Open
@saschanaz

Description

@saschanaz

What is the issue with the Notifications API Standard?

I just found that both Firefox and Safari associate the notifications with the scope instead for getNotifications(), while the spec says:

https://notifications.spec.whatwg.org/#dom-serviceworkerregistration-getnotifications

Let notifications be a list of all notifications in the list of notifications whose origin is same origin with origin, whose service worker registration is this, and whose tag, if tag is not the empty string, is tag.

Blink does the association as the spec says, and closes all the notifications when the SW is unregistered. I'm adding a tentative test in https://phabricator.services.mozilla.com/D202612 for Gecko/WebKit behavior as that's the majority, but worth a discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0