[Webkit-unassigned] [Bug 270650] New: Enable 'Notifications' API in Worker Context (enabled right now for Dedicated and Service Workers)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 7 11:40:53 PST 2024


            Bug ID: 270650
           Summary: Enable 'Notifications' API in Worker Context (enabled
                    right now for Dedicated and Service Workers)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat, WPTImpact
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com

Hi Team,

This is bug to address following FIXME:


" FIXME: Notification should be exposed to all Worker contexts, not just ServiceWorker and DedicatedWorker."

As per Web-Spec:


It is:


While our current:



We also have to update to make following not nullable:


[Exposed=Window, CallWith=CurrentDocument] static Promise<NotificationPermission> requestPermission(optional NotificationPermissionCallback? deprecatedCallback);


[Exposed=Window] static Promise<NotificationPermission> requestPermission(optional NotificationPermissionCallback deprecatedCallback);


It is leading to us failing 40 tests on WPT while all other browsers are passing:

WPT Tests: https://wpt.fyi/results/notifications/idlharness.https.any.sharedworker.html?label=experimental&label=master&aligned=&q=safari%3Afail+firefox%3Apass+chrome%3Apass

Just raising so we can track what is needed etc.


You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240307/c25c1161/attachment-0001.htm>

More information about the webkit-unassigned mailing list