Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser-plugin
diff options
context:
space:
mode:
authorJames Willcox <jwillcox@litl.com>2009-11-25 17:44:43 (GMT)
committer Marco Pesenti Gritti <marcopg@litl.com>2010-07-27 22:04:23 (GMT)
commitde2eab6a1638fb66239230c0f30a6a314cb2899b (patch)
tree6a773faaa3d2e8bee10779f21df38f19c4491ed4 /browser-plugin
parentb162fa3da3ad47e8673d85e344803185206a1ed9 (diff)
Respond to GetProperty on the fake find properties
Diffstat (limited to 'browser-plugin')
-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;