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

Agreed. One thing is the existing APIs throw/reject a TypeError as it sees it comes from a wrong parameter usage. For consistency, I plan to make `ServiceWorkerContainer.register(url, options)` (i.e. in the method steps before calling the Register) reject with a TypeError for both scriptURL and scopeURL that have non-http/https scheme. Does it work for you?

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

Received on Wednesday, 11 November 2015 02:22:20 UTC