diff --git a/mozilla/java/plugins/dist/netbeans/pluglet.properties b/mozilla/java/plugins/dist/netbeans/pluglet.properties index f0950df0204..e262e02272d 100644 --- a/mozilla/java/plugins/dist/netbeans/pluglet.properties +++ b/mozilla/java/plugins/dist/netbeans/pluglet.properties @@ -2,7 +2,7 @@ bin.artifacts.pattern=${so.prefix}plugletjni.${so.extension},components/${so.pre #debug.jvm.args=-Xdebug -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=y #Make this point to the bin directory of your firefox installation -browser.bin.dir=F:\\Projects\\mozilla\\MOZILLA_NIH\\FIREFOX_2_0_0_3_RELEASE\\mozilla\\firefox-win32_d.obj\\dist\\bin +browser.bin.dir=F:\\Projects\\mozilla\\MOZILLA_NIH\\FIREFOX_2_0_0_3_RELEASE\\mozilla\\firefox-win32_o.obj\\dist\\bin user.profile.dir=${user.home}/APPLIC~1/Mozilla/Firefox/Profiles/69lpopfc.default #Make this point at your JDKHOME without spaces jdkhome.nospaces=C:\\PROGRA~1\\Java\\jdk1.5.0_12 diff --git a/mozilla/java/plugins/examples/simple/src/main/web/index.html b/mozilla/java/plugins/examples/simple/src/main/web/index.html index 890c71322f6..b8c3b2bdc6e 100755 --- a/mozilla/java/plugins/examples/simple/src/main/web/index.html +++ b/mozilla/java/plugins/examples/simple/src/main/web/index.html @@ -9,9 +9,15 @@ var embed = document.embeds[0]; function callPluglet() { - var inArgv = []; - var outArgv = []; - embed.callPlugletMethod("methodName", 0, inArgv, 0, outArgv); +var strs2 = { + value : ["double","me","please"] +}; + +var strslen2 = { + value : strs2.value.length +}; + + embed.callPlugletMethod("methodName", strslen2, strs2); } diff --git a/mozilla/java/plugins/mozilla/nsIPluglet.idl b/mozilla/java/plugins/mozilla/nsIPluglet.idl index 3df91e48994..9515e74dbd6 100755 --- a/mozilla/java/plugins/mozilla/nsIPluglet.idl +++ b/mozilla/java/plugins/mozilla/nsIPluglet.idl @@ -42,6 +42,6 @@ interface nsIPluglet : nsISupports { boolean hasPlugletForMimeType(in string aMimeType); void callPlugletMethod(in string methodName, - in PRUint32 inArgc, - [array, size_is(inArgc)] in string inArgv); + inout PRUint32 inArgc, + [array, size_is(inArgc)] inout string inArgv); }; diff --git a/mozilla/java/plugins/mozilla/nsScriptablePeer.cpp b/mozilla/java/plugins/mozilla/nsScriptablePeer.cpp index 300dab09c58..5de7a104f40 100644 --- a/mozilla/java/plugins/mozilla/nsScriptablePeer.cpp +++ b/mozilla/java/plugins/mozilla/nsScriptablePeer.cpp @@ -133,11 +133,12 @@ NS_IMETHODIMP nsScriptablePeer::HasPlugletForMimeType(const char *aMimeType, PRB } NS_IMETHODIMP nsScriptablePeer::CallPlugletMethod(const char *methodName, - PRUint32 inArgc, const char **inArgv) + PRUint32 *inArgc, char ***inArgv) { nsresult rv = NS_OK; PR_LOG(log, PR_LOG_DEBUG, ("nppluglet CallPlugletMethod: methodName: %s\n", methodName)); + *inArgc = 0; return rv; }