[w3c/ServiceWorker] Should importScripts() detect loops or otherwise abort after too much depth? (#1570)

Chrome apparently crashes if `sw.js` tries to do `importScripts(sw.js)`: https://crbug.com/1180572

This was previously discussed a little at https://github.com/w3c/ServiceWorker/issues/1041#issue-197802878.

Should importScripts() do something more intelligent than crashing.

@jakearchibald suggested that iframes may have a protection against nesting iframes of the same URL, that we can learn from.  cc @wanderview 

-- 
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/1570

Received on Monday, 8 March 2021 14:55:16 UTC