summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/plugin/npobject_proxy.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/plugin/npobject_proxy.cc b/chrome/plugin/npobject_proxy.cc
index 492c6c8..8071141 100644
--- a/chrome/plugin/npobject_proxy.cc
+++ b/chrome/plugin/npobject_proxy.cc
@@ -156,7 +156,11 @@ bool NPObjectProxy::NPInvokePrivate(NPP npp,
NPObjectProxy* proxy = GetProxy(obj);
if (!proxy) {
- return obj->_class->invoke(obj, name, args, arg_count, np_result);
+ if (is_default) {
+ return obj->_class->invokeDefault(obj, args, arg_count, np_result);
+ } else {
+ return obj->_class->invoke(obj, name, args, arg_count, np_result);
+ }
}
bool result = false;