DescriptionStop ServiceWorker context when no controllee is associated (and when all refs are dropped)
Currently we stop the ServiceWorker thread/context when:
1. After all documents that are controlled by the SW are closed, with a delay (5 min)
2. All references to the version are dropped (i.e. in dtor)
In the current impl/codebase a worker is immediately stopped by 2
in most cases.
The same stop timer (ScheduleStopWorker()) could be probably called
each time handling event is finished to stop the worker more
aggressively, though this patch doesn't do so.
BUG=372673
TEST=tested manually with chrome://serviceworker-internals/
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270971
Patch Set 1 #
Total comments: 9
Patch Set 2 : Updated, and updated tests #
Total comments: 11
Patch Set 3 : addressed comments #
Messages
Total messages: 17 (0 generated)
|