DescriptionServiceWorker: Don't start the timeout timer when DevTools is detached
Starting/stopping the timeout timer should be triggered in response to the
lifecycle event of the service worker, that is, only StartWorker() should
call StartTimeoutTimer() and only OnStopped() should call StopTimeoutTimer().
This CL removes the call of StartTimeoutTimer() from SetDevToolsAttached()
and instead reactivates the timer for start timeout when DevTools is detached
and the worker is still under starting phase.
BUG=448003
TEST=content_unittests --gtest_filter=ServiceWorkerVersionTest.*
Committed: https://crrev.com/01dab9680e4a5e82624daf0a6d758f03242361d0
Cr-Commit-Position: refs/heads/master@{#321727}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : rebase #Patch Set 3 : #
Total comments: 9
Patch Set 4 : rebase #Patch Set 5 : #
Total comments: 2
Messages
Total messages: 21 (8 generated)
|