Web Inspector: Worker should recover if Inspector is closed and never sent Worker...
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Oct 2016 22:19:37 +0000 (22:19 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Oct 2016 22:19:37 +0000 (22:19 +0000)
commit7ae0c4f27f1acc2af1bd7f596ecd9f05caf487c7
tree19dc5849b79a5851034a3337e6bf4d30cfb276e9
parent3c22c8e87eeb520e31dde015c2781793e4262694
Web Inspector: Worker should recover if Inspector is closed and never sent Worker.initialized command
https://bugs.webkit.org/show_bug.cgi?id=164073

Reviewed by Brian Burg.

Source/WebCore:

Test: inspector/worker/worker-recover-if-inspector-close.html

* workers/WorkerInspectorProxy.cpp:
(WebCore::WorkerInspectorProxy::disconnectFromWorkerInspectorController):
Ensure we stop the debugger only task loop if needed when the last debugger
message comes in.

LayoutTests:

* inspector/worker/worker-recover-if-inspector-close-expected.txt: Added.
* inspector/worker/worker-recover-if-inspector-close.html: Added.
Test to ensure a Worker recovers when it is paused on opening waiting for
Inspector messages and the Inspector disconnects.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/worker/worker-recover-if-inspector-close-expected.txt [new file with mode: 0644]
LayoutTests/inspector/worker/worker-recover-if-inspector-close.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/workers/WorkerInspectorProxy.cpp