Re: [ServiceWorker] importScripts() should throw? (#642)

Wait, looking at the current spec I don't see the [import scripts allowed flag](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-global-scope-importscripts-allowed-flag) set during top level [worker script evaluation](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#run-service-worker-algorithm).  Is that correct?

It seems we should allow importScripts() to run at the top level in addition to the install event.  Otherwise we are going to break a lot of existing service workers out there.

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

Received on Friday, 4 September 2015 14:33:55 UTC