DescriptionInjectedScriptManager::CallbackData should be disposed when an associated worker thread terminates
CallbackData created by InjectedScriptManager should be deleted when
an associated worker thread terminates. The most straightforward way
to do that is to make the InjectedScriptManager hold a list of
OwnPtr<CallbackData> that the InjectedScriptManager created.
Since the the InjectedScriptManager is destructed in ~WorkerScriptController(), it's guaranteed that all associated CallbackData is destructed
in
~WorkerScriptController() as well.
This change will fix a couple of inspector-protocol/debugger tests in oilpan builds.
BUG=398472
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179905
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Messages
Total messages: 18 (0 generated)
|