Re: [w3c/ServiceWorker] Consider providing `navigation` event (#1028)

Perhaps you could trigger _foreign navigation_ but not prevent default behaviour if the user has explicitly expressed an intention. 

```js
self.onforeignnavigation = evt => {
  /* Log the event... */
  if (evt.navigationMode === 'default') {
     evt.preventDefault(); // OK
  } else {
     evt.preventDefault(); // throws
  }
};
```

-- 
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/1028#issuecomment-267952308

Received on Monday, 19 December 2016 12:25:54 UTC