Chromium Code Reviews
DescriptionInvoke PluginImplementedObjectDestroyed for ppp_class deallocate
Deallocate on the plugin's GetInstanceObject ScriptableObject gets invoked
twice during plugin destruction, typically resulting in a crash, for proxied
plugins that expose a scriptable object. Once by PPP_ClassProxy::OnMsgDeallocate
and once by PluginVarTracker::DidDeleteInstance. This patch removes the object
from the var tracker when it is destroyed in PPP_Class_Proxy.
It also tweaks a unittest to verify Deallocate is invoked only once during the
test.
BUG=133950
TEST=Run gmail, reload page (ctrl-r) and observe for plugin crashes
TEST=Run ppapi_example out-of-process, reload page, observe for plugn crashes
TEST=ppapi_unittests --gtest_filter="PluginVar*"
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144531
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove object from global list before Deallocate #
Messages
Total messages: 6 (0 generated)
|
||||||||||||||||||||||||||||