Bug 238548 - Notification should be exposed to ServiceWorker contexts
Summary: Notification should be exposed to ServiceWorker contexts
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-30 05:10 PDT by youenn fablet
Modified: 2022-04-01 04:50 PDT (History)
7 users (show)

See Also:


Attachments
Patch (31.58 KB, patch)
2022-03-31 01:03 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (19.57 KB, patch)
2022-03-31 05:31 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (16.78 KB, patch)
2022-03-31 06:32 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Rebasing (17.12 KB, patch)
2022-04-01 01:34 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2022-03-30 05:10:35 PDT
Currently we can create Notification from a service worker even though Notification is not yet exposed.
We should also throw when constructor is called in a service worker context.
Comment 1 youenn fablet 2022-03-31 01:03:35 PDT
Created attachment 456210 [details]
Patch
Comment 2 youenn fablet 2022-03-31 05:31:36 PDT
Created attachment 456228 [details]
Patch
Comment 3 youenn fablet 2022-03-31 06:32:00 PDT
Created attachment 456232 [details]
Patch
Comment 4 Chris Dumez 2022-03-31 08:20:29 PDT
Comment on attachment 456232 [details]
Patch

r=me
Comment 5 youenn fablet 2022-04-01 01:34:55 PDT
Created attachment 456336 [details]
Rebasing
Comment 6 EWS 2022-04-01 04:49:56 PDT
Committed r292216 (249119@main): <https://commits.webkit.org/249119@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456336 [details].
Comment 7 Radar WebKit Bug Importer 2022-04-01 04:50:17 PDT
<rdar://problem/91156510>