Re: [ServiceWorker] register() should not allow file://, wss://, etc (#780)

A register attempt for a file:// url will return a network error from Fetch (in [basic fetch](https://fetch.spec.whatwg.org/#concept-basic-fetch) algorithm) which makes the navigator.serviceWorker.register(url) promise reject. So basically the script in file:// scheme cannot be installed.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/780#issuecomment-155626094

Received on Wednesday, 11 November 2015 01:34:28 UTC