diff options
author | Peter Teichman <pteichman@litl.com> | 2009-07-13 15:46:24 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marcopg@litl.com> | 2010-07-27 22:04:23 (GMT) |
commit | ab26784fb545b5382e69c277af78e606f98b7127 (patch) | |
tree | e86558389415f0bf4b545f40bd5eece4d1d9d489 /browser-plugin/scriptable.cpp | |
parent | 9ebeefec85ee1ce784361242694e224b8847be35 (diff) |
First pass at a port to xulrunner 1.9.1 (Firefox 3.5)
Diffstat (limited to 'browser-plugin/scriptable.cpp')
-rw-r--r-- | browser-plugin/scriptable.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; |