Re: [w3c/ServiceWorker] Is there any way for a web page to see if their requests will be intercepted by a foreign fetch handler? (#1092)

Does it make sense to ask the Service Worker manager if there is some foreign fetch related with certain origins? Such as:

```js
let willBeIntercepted =
  await navigator.serviceWorker.checkInterception('https://fontsite.com');
if (!willBeIntercepted) {
  navigator.serviceWorker.onforeignfetchinterception = evt => {
    willBeIntercepted = evt.origin === 'https://fontsite.com';
  };
}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1092#issuecomment-290327300

Received on Thursday, 30 March 2017 07:35:46 UTC