Re: [w3c/ServiceWorker] Should add a “script type” check in the register algorithm. (#1359)

Just concern:
If in the case that
1. A user register SW as classic script type.
2. A user update it to module script type and the main script using module specific syntax(like “import ‘sw2.js’;”).
3. Only run Update Job  without running Register Job (It would happen when a user accesses a page in scope but not a top-level page).
4. Fail update because of an evaluation error.
Update Job keeps to fail until a user accesses a top-level page having navigator.serviceWorker.register(‘sw2.js’, {type: ‘module’});

Is this behavior intentional?


-- 
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/1359#issuecomment-432486071

Received on Wednesday, 24 October 2018 02:09:30 UTC