Closed Bug 1119415 Opened 9 years ago Closed 9 years ago

SharedWorkers should cancel their load group at worker shutdown

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1118845

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

After bug 1107516 and bug 1118845 SharedWorkers now have their own load group.  Currently this load group is simply cleaned up when the SW WorkerPrivate is cleaned up and de-referenced.  This will allow in-flight network requests to continue, however, since they will also be referencing the group.

Instead, SharedWorkers should explicitly cancel the load group when the worker is shutdown.
I'll look at this next week.  I don't think its critical to get in before the merge because previously there was no load group to stop requests at all.
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
We want this to cancel the load group for ServiceWorkers as well.  Our ServiceWorker life cycle code should just try not to shutdown the worker if its still actively doing requests.
I ended up doing this as part of bug 1118845.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.