Date: Wed, 9 Mar 2011 12:25:38 -0500 (EST) From: "J.R. Oldroyd" <fbsd@opal.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/155417: (patch) NSPlugin Viewer WARNING: unhandled variable 18 (<unknown variable>) in NPN_GetValue() Message-ID: <201103091725.p29HPctJ045927@shibato.opal.com> Resent-Message-ID: <201103091730.p29HUCiu082096@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155417 >Category: ports >Synopsis: (patch) NSPlugin Viewer WARNING: unhandled variable 18 (<unknown variable>) in NPN_GetValue() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 09 17:30:12 UTC 2011 >Closed-Date: >Last-Modified: >Originator: J.R. Oldroyd >Release: FreeBSD 8.2-RELEASE amd64 >Organization: >Environment: System: FreeBSD xx.opal.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: npviewer.bin complains: *** NSPlugin Viewer *** WARNING: unhandled variable 18 (<unknown variable>) in NPN_GetValue() the attached patch adds support for variable 18 >How-To-Repeat: Browsing to a web site that has a flash program that queries the browser's Private Mode causes this error. >Fix: diff -ruN /usr/ports/www/nspluginwrapper/files/patch-src-npw-rpc.c nspluginwrapper-NPNV18/files/patch-src-npw-rpc.c --- /usr/ports/www/nspluginwrapper/files/patch-src-npw-rpc.c 1969-12-31 19:00:00.000000000 -0500 +++ nspluginwrapper-NPNV18/files/patch-src-npw-rpc.c 2011-03-09 12:05:41.000000000 -0500 @@ -0,0 +1,10 @@ +--- src/npw-rpc.c.orig 2009-01-02 03:54:10.000000000 -0500 ++++ src/npw-rpc.c 2011-03-09 12:00:17.000000000 -0500 +@@ -41,6 +41,7 @@ + case NPNVisOfflineBool: + case NPNVSupportsXEmbedBool: + case NPNVSupportsWindowless: ++ case NPNVprivateModeBool: + type = RPC_TYPE_BOOLEAN; + break; + case NPNVToolkit: diff -ruN /usr/ports/www/nspluginwrapper/files/patch-src-npw-viewer.c nspluginwrapper-NPNV18/files/patch-src-npw-viewer.c --- /usr/ports/www/nspluginwrapper/files/patch-src-npw-viewer.c 1969-12-31 19:00:00.000000000 -0500 +++ nspluginwrapper-NPNV18/files/patch-src-npw-viewer.c 2011-03-09 12:05:41.000000000 -0500 @@ -0,0 +1,10 @@ +--- src/npw-viewer.c.orig 2009-01-02 03:54:10.000000000 -0500 ++++ src/npw-viewer.c 2011-03-09 11:59:42.000000000 -0500 +@@ -992,6 +992,7 @@ + case NPNVSupportsXEmbedBool: + case NPNVWindowNPObject: + case NPNVPluginElementNPObject: ++ case NPNVprivateModeBool: + return g_NPN_GetValue_real(instance, variable, value); + default: + switch (variable & 0xff) { diff -ruN /usr/ports/www/nspluginwrapper/files/patch-src-utils.c nspluginwrapper-NPNV18/files/patch-src-utils.c --- /usr/ports/www/nspluginwrapper/files/patch-src-utils.c 1969-12-31 19:00:00.000000000 -0500 +++ nspluginwrapper-NPNV18/files/patch-src-utils.c 2011-03-09 12:05:41.000000000 -0500 @@ -0,0 +1,10 @@ +--- src/utils.c.orig 2009-01-02 03:54:10.000000000 -0500 ++++ src/utils.c 2011-03-09 12:05:38.000000000 -0500 +@@ -283,6 +283,7 @@ + _(NPNVWindowNPObject); + _(NPNVPluginElementNPObject); + _(NPNVSupportsWindowless); ++ _(NPNVprivateModeBool); + #undef _ + default: + switch (variable & 0xff) { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103091725.p29HPctJ045927>