browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

api.Notification.Notification - silent default has changed

Open Josh-Cena opened this issue 1 year ago • 1 comments

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

See https://github.com/whatwg/notifications/pull/194, https://github.com/mdn/content/issues/26812 — the silent option now defaults to null instead of false.

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

A new subfeature called "silent defaults to null"

Did you test this? If so, how?

This has shipped in Safari at least; tested with new Notification("foo").silent.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Notification/silent

MDN metadata

MDN page report details
  • Query: api.Notification.silent
  • Report started: 2024-09-03T03:23:54.454Z

Josh-Cena avatar Sep 03 '24 03:09 Josh-Cena

Also include ServiceWorkerRegistration.showNotification()

skyclouds2001 avatar Sep 16 '24 15:09 skyclouds2001

Spec:

  • Issue: https://github.com/whatwg/notifications/issues/193
  • PR: https://github.com/whatwg/notifications/pull/194
  • Commit: https://github.com/whatwg/notifications/commit/3f9fddef36b5794049d88c066799c4f249ee5a25

Created this Playground to test.

  • Chrome tracks this in https://issues.chromium.org/issues/40268798 (default value is still false)
  • Firefox tracks this in https://bugzilla.mozilla.org/show_bug.cgi?id=1834005 (default value is still false)
  • Safari 18.4 already implemented this (default value is null)

Let's add a subfeature defaults_to_null, and set spec_url to https://notifications.spec.whatwg.org/#silent-preference-flag.

@Josh-Cena @skyclouds2001 Would one of you be interested in contributing this subfeature?

caugner avatar May 07 '25 11:05 caugner