DescriptionDelete EmbeddedWorkerDispatcher in RenderThreadImpl::Shutdown().
In current code, EmbeddedWorkerDispatcher is deleted in the destructor of RenderThreadImpl.
If EmbeddedWorkerDispatcher contains any WorkerWrapper in workers_, WorkerWrapper and EmbeddedWorkerDevToolsAgent will be deleted at that time.
And the destructor of EmbeddedWorkerDevToolsAgent will call RemoveEmbeddedWorkerRoute of RenderThreadImpl which is being deleted.
To avoid this we should delete EmbeddedWorkerDispatcher in RenderThreadImpl::Shutdown().
BUG=377258, 358657
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272892
Patch Set 1 #Patch Set 2 : incorporated falken's comment #Messages
Total messages: 8 (0 generated)
|