background-fetch icon indicating copy to clipboard operation
background-fetch copied to clipboard

Interfaces should be [SecureContext]

Open johnmellor opened this issue 7 years ago • 0 comments

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).

johnmellor avatar Jul 27 '17 13:07 johnmellor