From 02cfa62f9d90d9494fde59c116d43ca1d62d085f Mon Sep 17 00:00:00 2001 From: Benjamin Smedberg Date: Wed, 17 Feb 2010 13:30:54 -0500 Subject: [PATCH] Bug 543977 - NPClass.invoke should be optional when a class just wants to implement NPClass.invokedefault, r=jst --HG-- extra : rebase_source : 2e1fb9896bcbf12bc6d2772c02a1cc9557efe6eb --- modules/plugin/base/src/nsJSNPRuntime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugin/base/src/nsJSNPRuntime.cpp b/modules/plugin/base/src/nsJSNPRuntime.cpp index f38a569fbe6..22062d4765d 100644 --- a/modules/plugin/base/src/nsJSNPRuntime.cpp +++ b/modules/plugin/base/src/nsJSNPRuntime.cpp @@ -1355,7 +1355,7 @@ CallNPMethodInternal(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, NPObject *npobj = (NPObject *)::JS_GetPrivate(cx, obj); - if (!npobj || !npobj->_class || !npobj->_class->invoke) { + if (!npobj || !npobj->_class) { ThrowJSException(cx, "Bad NPObject as private data!"); return JS_FALSE;