Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser-plugin/scriptable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'browser-plugin/scriptable.cpp')
-rw-r--r--browser-plugin/scriptable.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/browser-plugin/scriptable.cpp b/browser-plugin/scriptable.cpp
index 6c7e55c..8c8e9e2 100644
--- a/browser-plugin/scriptable.cpp
+++ b/browser-plugin/scriptable.cpp
@@ -283,6 +283,14 @@ ScriptablePluginObject::GetProperty (NPIdentifier name, NPVariant *result)
} else if (name == mCanFindOnPageID) {
BOOLEAN_TO_NPVARIANT (plugin->mCanFindOnPage, *result);
return true;
+#if !CAN_CALL_METHODS
+ } 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;