DescriptionKeep alive ServiceWorkers when devtools is attached
- Plumbed from EmbeddedWorkerDevToolsAgentHost to
ServiceWorkerVersion to flip 'DevToolsAttached' flag
- Added EmbeddedWorkerInstance::StopIfIdle() which doesn't stop
the worker if devtools is attached
- Changed stop-worker-timer code to call StopIfIdle() instead of Stop()
- Added a hook in EmbeddedDevToolsManager that is called when we
didn't stop the worker (to show an educational console message)
BUG=429582
TEST=EmbeddedWorkerInstanceTest.StopWhenDevToolsAttached
Committed: https://crrev.com/756d8aa20291c1e6c286e0c61f630c6b211bf13e
Cr-Commit-Position: refs/heads/master@{#308332}
Patch Set 1 #
Total comments: 1
Patch Set 2 : updated comments #
Total comments: 1
Patch Set 3 : #Patch Set 4 : #
Total comments: 12
Patch Set 5 : addressed pavel's comments #Patch Set 6 : ASSERT_TRUE -> DCHECK :( #Messages
Total messages: 29 (8 generated)
|