You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are secure contexts where serviceWorker does not exist as a property of navigator, such as Firefox's private mode and IABs on apps like Messenger.
Webref merely collects the Web IDL as it is defined in underyling specs. Could you raise this issue in the w3c/ServiceWorker repository where the spec is being developed?
I note that, in general, the concepts of private/incognito mode, in app browsing, and WebViews, are not defined in specs for now, and may mean different things to different browser vendors. Specs don't usually attempt to account for these contexts as a result, except in privacy/security considerations. For WebViews, the WebView Community Group is currently exploring that space with a view to hopefully and eventually converging on a common definition.
In practice, implementers may choose to support an API in all contexts, only in some contexts, or nowhere at all, which de facto makes most APIs that hook into navigator optional already. The Service Workers API is not the only one in that case.
I'm closing this issue in Webref as out of scope for the project itself.
Thanks a lot for the reply. I don't think it's wise to delve further into it, given there are ongoing efforts into coming to an agreement on how implementers respect the spec, and how the spec can adjust to their needs.
There are secure contexts where
serviceWorker
does not exist as a property ofnavigator
, such as Firefox's private mode and IABs on apps like Messenger.MDN also confirms this:
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serviceWorker.
https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/serviceWorker
The text was updated successfully, but these errors were encountered: