diff --git a/dom/plugins/PluginInstanceParent.cpp b/dom/plugins/PluginInstanceParent.cpp index 4f59f1edc08..32e73cf4b57 100644 --- a/dom/plugins/PluginInstanceParent.cpp +++ b/dom/plugins/PluginInstanceParent.cpp @@ -552,10 +552,8 @@ PluginInstanceParent::NPP_HandleEvent(void* event) { RECT rect; SharedSurfaceBeforePaint(rect, npremoteevent); - if (!CallNPP_HandleEvent(npremoteevent, &handled)) - return 0; - if (handled) - SharedSurfaceAfterPaint(npevent); + CallNPP_HandleEvent(npremoteevent, &handled); + SharedSurfaceAfterPaint(npevent); } break; default: