notifications

edit

WPT coverage of the tests of notifications at the revision c8fa86fb13d4. The tests link to their results in the browsers on wpt.fyi. The tentative tests (experimental features), the reftests and the crash tests are listed separately from the stable tests.

GroupPassingTestsDisabledPass rate
Stable1921195%
Tentative34075%
Reftests000–
Crash tests220100%
All2427192%

Failure reasons

The tests that do not pass (failing or disabled), by kind of reason. A test with several reasons counts once per kind.

  • TEST BUG: 2
  • NOT IMPLEMENTED: 1

Stable tests

TestResultSubtestsKindDescription
constructor-basic.https.htmlPass4 / 4
constructor-invalid.https.htmlPass1 / 1
constructor-non-secure.htmlPass1 / 1
event-onclose.https.htmlPass2 / 2
event-onshow.https.htmlPass1 / 1
fetch-url-resolve.https.window.jsPass2 / 2
getnotifications-across-processes.https.window.jsPass3 / 3
historical.any.jsPass4 / 4
icon-fetch-blob-url.https.window.jsPass8 / 8
icon-url-encoding-euc-kr.https.htmlPass1 / 1
idlharness.https.any.jsPass243 / 243
instance.https.window.jsTimeout11 / 34TEST BUGthe window subtests construct a Notification with actions, which the constructor rejects with a TypeError (only the persistent notifications have actions); the notificationclose subtests of the service worker wait for a notificationclose event after close(), which the specification only fires when the user closes a persistent notification (the test notes that it times out in Blink and Gecko)
lang.https.htmlPass37 / 37
permission.htmlPass1 / 1
permissions-non-secure.htmlPass3 / 3
registration-association.https.window.jsDisabled–TEST BUGprepareActiveServiceWorker() awaits navigator.serviceWorker.ready, which is resolved once per container (https://w3c.github.io/ServiceWorker/#navigator-service-worker-ready): in the first subtest it is already resolved with the registration of the setup, so it does not wait for the new registration to be activated. The second subtest calls showNotification() on the new registration, which rejects with a TypeError while its active worker is null (https://notifications.spec.whatwg.org/#dom-serviceworkerregistration-shownotification), so the result depends on whether the activation ended first (it failed 2 runs of 5 locally)
shownotification-window.https.htmlPass1 / 1
shownotification-without-permission.https.window.jsPass1 / 1
shownotification.https.window.jsPass11 / 11
tag.https.htmlPass2 / 2
worker-gc.https.window.jsPass1 / 1

Tentative tests

TestResultSubtestsKindDescription
cross-origin-nested.tentative.https.sub.htmlPass4 / 4
cross-origin-same-site-request.tentative.https.sub.htmlPass1 / 1
cross-origin-serviceworker.tentative.https.sub.htmlPass1 / 1
icon-fetch.tentative.https.window.jsTimeout0 / 1NOT IMPLEMENTEDthe fetch steps of the notifications: the library does not display the notifications, so it does not fetch their icon, image and badge (the host fetches them if it displays them)

Crash tests

TestResultVariantsKindDescription
crashtests/show-and-close.https.htmlPass1 / 1
global-teardown-crash.htmlPass1 / 1