Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Unified Diff: webkit/glue/plugins/plugin_instance.cc

Issue 338050: Ensure that all NPN_PluginThreadAsyncCall callbacks are invoked before NPP_De... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/ui/npapi_uitest.cc ('k') | webkit/glue/plugins/test/plugin_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_instance.cc
===================================================================
--- webkit/glue/plugins/plugin_instance.cc (revision 30402)
+++ webkit/glue/plugins/plugin_instance.cc (working copy)
@@ -365,7 +365,9 @@
void PluginInstance::OnPluginThreadAsyncCall(void (*func)(void *),
void *user_data) {
- func(user_data);
+ // Do not invoke the callback if NPP_Destroy has already been invoked.
+ if (webplugin_)
+ func(user_data);
}
uint32 PluginInstance::ScheduleTimer(uint32 interval,
« no previous file with comments | « chrome/test/ui/npapi_uitest.cc ('k') | webkit/glue/plugins/test/plugin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698