Marks this context as the service worker, so backgroundFetch calls fetch directly. A
worker's runtime.sendMessage is never delivered to itself. Set explicitly rather than detected,
because Firefox runs the same script as an event page, which does have a window.
Returns void
Example
runInBackgroundContext(); // once, from the service worker
Marks this context as the service worker, so backgroundFetch calls
fetchdirectly. A worker'sruntime.sendMessageis never delivered to itself. Set explicitly rather than detected, because Firefox runs the same script as an event page, which does have awindow.