Call EmbeddedWorkerDevToolsManager::WorkerDestroyed from SharedWorkerHost::WorkerContextClosed.
If SharedWorkerHost's closed flag is true SharedWorkerServiceImpl::FindSharedWorkerHost() doesn't match the host. So two SharedWorkerHosts of same SharedWorkerInstance could be created. But EmbeddedWorkerDevToolsManager can't handle two SharedWorkerHosts of same SharedWorkerInstance. So we have to remove instance from EmbeddedWorkerDevToolsManager when WorkerContextClosed is called. BUG=374387 Review URL: https://codereview.chromium.org/287303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271463 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment