[ServiceWorker] A worker that fails to activate should relinquish its controllees (#659)

Consider the Service Worker

```javascript
skipWaiting();
onactivate = function(e) {
  e.waitUntil(clients.claim()
    .then(function() {
      return Promise.reject();
    })
  );
};
```

As per spec, the registration will have no active worker, the worker will be in redundant state, yet it may still be the controller of clients. Probably Activate step 15 "If activateFailed is true" should also relinquish the worker's controllees.
  

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

Received on Tuesday, 24 March 2015 03:49:21 UTC