DescriptionClear EmbeddedWorkerContextClient's thread-local ptr in willDestroyWorkerContext()
Back then EmbeddedWorkerContextClient used to be destroyed on the worker
thread when corresponding WorkerGlobalScope's destructed, but after
http://crrev.com/262813004 we started to destruct it on main thread
(after the worker side termination), so resetting thread-local ptr in
the dtor doesn't work (as it runs on main thread).
This change clears the thread-local ptr in willDestroyWorkerContext(),
where we're sure we're still on the worker thread.
BUG=n/a
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272487
Patch Set 1 #
Total comments: 2
Patch Set 2 : fixed todo comment #Messages
Total messages: 8 (0 generated)
|