| // META: global=window,worker |
| // META: script=/resources/WebIDLParser.js |
| // META: script=/resources/idlharness.js |
| // https://wicg.github.io/background-fetch/ |
| ['service-workers', 'html', 'dom'], |
| const isServiceWorker = location.pathname.includes('.serviceworker.'); |
| ServiceWorkerGlobalScope: ['self'], |
| ServiceWorkerRegistration: ['registration'], |
| BackgroundFetchManager: ['registration.backgroundFetch'], |
| BackgroundFetchEvent: ['new BackgroundFetchEvent("type")'], |
| BackgroundFetchUpdateEvent: ['new BackgroundFetchUpdateEvent("type")'], |