background-fetch
background-fetch copied to clipboard
Interfaces should be [SecureContext]
Whilst the APIs implicitly require a secure context since they hang off ServiceWorkerRegistration
, the interfaces themselves are still exposed as window.BackgroundFetchManager
etc in non-secure contexts.
It would be neater to hide them there by adding [SecureContext]
. This matches the consensus in https://github.com/w3c/ServiceWorker/issues/941 which added [SecureContext]
to interfaces in the service worker spec (though I notice we haven't yet updated Blink's IDL to match).