From ab26784fb545b5382e69c277af78e606f98b7127 Mon Sep 17 00:00:00 2001 From: Peter Teichman Date: Mon, 13 Jul 2009 15:46:24 +0000 Subject: First pass at a port to xulrunner 1.9.1 (Firefox 3.5) --- diff --git a/browser-plugin/scriptable.cpp b/browser-plugin/scriptable.cpp index 6c7e55c..2542938 100644 --- a/browser-plugin/scriptable.cpp +++ b/browser-plugin/scriptable.cpp @@ -283,6 +283,15 @@ ScriptablePluginObject::GetProperty (NPIdentifier name, NPVariant *result) } else if (name == mCanFindOnPageID) { BOOLEAN_TO_NPVARIANT (plugin->mCanFindOnPage, *result); return true; +#if !CAN_CALL_METHODS + // we have to respond to these in order for SetProperty to work + } else if (name == mFindTermsID) { + NULL_TO_NPVARIANT (*result); + return true; + } else if (name == mFindNextID || name == mFindPreviousID) { + INT32_TO_NPVARIANT (42, *result); + return true; +#endif } return false; -- cgit v0.9.1