summaryrefslogtreecommitdiff
path: root/www/nspluginwrapper-devel/files/patch-NPNVprivateModeBool
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-08-23 21:52:39 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-08-23 21:52:39 +0000
commit1ebfc2aa84ad7d96bc96ff371bda621db3323cf4 (patch)
tree9af19a34a1287a1c24c431bdd12764027dc16d14 /www/nspluginwrapper-devel/files/patch-NPNVprivateModeBool
parentUpdate to 3.8.8 (diff)
- Add a trivial fix for NPAPI PrivateMode. It should fix annoying warnings
such as this: *** NSPlugin Viewer *** WARNING: unhandled variable 18 (<unknown variable>) in NPN_GetValue() See the following URL for more information: https://wiki.mozilla.org/Plugins:PrivateMode - Replace a trivial shell script with our own version.
Notes
Notes: svn path=/head/; revision=259869
Diffstat (limited to 'www/nspluginwrapper-devel/files/patch-NPNVprivateModeBool')
-rw-r--r--www/nspluginwrapper-devel/files/patch-NPNVprivateModeBool43
1 files changed, 43 insertions, 0 deletions
diff --git a/www/nspluginwrapper-devel/files/patch-NPNVprivateModeBool b/www/nspluginwrapper-devel/files/patch-NPNVprivateModeBool
new file mode 100644
index 000000000000..5dfefabd59ff
--- /dev/null
+++ b/www/nspluginwrapper-devel/files/patch-NPNVprivateModeBool
@@ -0,0 +1,43 @@
+--- npapi/npapi.h 2009-01-02 09:22:28.000000000 -0500
++++ npapi/npapi.h 2010-08-18 19:07:09.000000000 -0400
+@@ -439,7 +439,9 @@ typedef enum {
+ /* Get the NPObject wrapper for the plugins DOM element. */
+ NPNVPluginElementNPObject = 16,
+
+- NPNVSupportsWindowless = 17
++ NPNVSupportsWindowless = 17,
++
++ NPNVprivateModeBool = 18
+
+ } NPNVariable;
+
+--- src/npw-rpc.c 2010-08-18 19:10:19.000000000 -0400
++++ src/npw-rpc.c 2010-08-18 19:08:24.000000000 -0400
+@@ -41,6 +41,7 @@ int rpc_type_of_NPNVariable(int variable
+ case NPNVisOfflineBool:
+ case NPNVSupportsXEmbedBool:
+ case NPNVSupportsWindowless:
++ case NPNVprivateModeBool:
+ type = RPC_TYPE_BOOLEAN;
+ break;
+ case NPNVToolkit:
+--- src/npw-viewer.c 2010-08-18 19:10:19.000000000 -0400
++++ src/npw-viewer.c 2010-08-18 19:05:46.000000000 -0400
+@@ -1266,6 +1266,7 @@ g_NPN_GetValue(NPP instance, NPNVariable
+ case NPNVSupportsXEmbedBool:
+ case NPNVWindowNPObject:
+ case NPNVPluginElementNPObject:
++ case NPNVprivateModeBool:
+ return g_NPN_GetValue_real(instance, variable, value);
+ default:
+ switch (variable & 0xff) {
+--- src/utils.c 2009-01-02 09:22:29.000000000 -0500
++++ src/utils.c 2010-08-18 19:09:31.000000000 -0400
+@@ -283,6 +283,7 @@ const char *string_of_NPNVariable(int va
+ _(NPNVWindowNPObject);
+ _(NPNVPluginElementNPObject);
+ _(NPNVSupportsWindowless);
++ _(NPNVprivateModeBool);
+ #undef _
+ default:
+ switch (variable & 0xff) {