Add an experiment to terminate service worker on no controllee
This CL is to add a new experiment ServiceWorkerTerminationOnNoControllee which is to terminate a service worker soon after all controllees are gone. The experiment introduces a small delay until the worker is actually stopped. If a new client results in being controlled by the service worker during the delay, the scheduled termination will be canceled. By default, this feature is disabled and the termination happens based on the existing 30-second idle timeout. Bug: 1043845 Change-Id: I132fc2da300ddef7aa6e111e0af2e587b72c8121 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2011589 Commit-Queue: Makoto Shimazu <shimazu@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#734363}
Showing
Please register or sign in to comment