Stop 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/ Review URL: https://codereview.chromium.org/272183005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270971 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment