ServiceWorker
9e9fe27e - Editorial: queue a task to reject promise in InstallEvent.addRoutes (#1839)

Commit
11 days ago
Editorial: queue a task to reject promise in InstallEvent.addRoutes (#1839) The rejection path in the [[service worker queue]] block was resolving/rejecting a JS promise directly from a parallel queue, which violates the same pattern that #1740 flags. Wrap it in a Queue a task on the service worker event loop, and abort further steps so we don't also set the rules and resolve the same promise afterwards. Refs: #1740
Author
Parents
Loading