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.
Created attachment 456210 [details] Patch
Created attachment 456228 [details] Patch
Created attachment 456232 [details] Patch
Comment on attachment 456232 [details] Patch r=me
Created attachment 456336 [details] Rebasing
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].
<rdar://problem/91156510>