[gecko-mediaplayer] r522 committed - Add in code from Issue #184 to see if this helps the Debian folks with...

2 views
Skip to first unread message

codesite...@google.com

unread,
Jun 23, 2013, 3:02:15 PM6/23/13
to gecko-mediap...@googlegroups.com
Revision: 522
Author: kdekorte
Date: Sun Jun 23 12:02:02 2013
Log: Add in code from Issue #184 to see if this helps the Debian folks
with running the plugin on older versions
http://code.google.com/p/gecko-mediaplayer/source/detail?r=522

Modified:
/trunk/ChangeLog
/trunk/src/np_entry.cpp

=======================================
--- /trunk/ChangeLog Fri Mar 1 14:02:24 2013
+++ /trunk/ChangeLog Sun Jun 23 12:02:02 2013
@@ -1,4 +1,5 @@
Development
+ Add in code from Issue #184 to see if this helps the Debian folks with
running the plugin on older versions
1.0.8
Updated Spanish translation
Updated Japanese translation
=======================================
--- /trunk/src/np_entry.cpp Fri Dec 2 12:58:59 2011
+++ /trunk/src/np_entry.cpp Sun Jun 23 12:02:02 2013
@@ -52,6 +52,9 @@
#endif

NPNetscapeFuncs NPNFuncs;
+#ifdef XP_UNIX
+#include <stddef.h>
+#endif

#ifdef XP_WIN

@@ -117,7 +120,10 @@
if (HIBYTE(pFuncs->version) > NP_VERSION_MAJOR)
return NPERR_INCOMPATIBLE_VERSION_ERROR;

- if (pFuncs->size < sizeof(NPNetscapeFuncs))
+ // if (pFuncs->size < sizeof(NPNetscapeFuncs))
+ // Updated from Issue #184
+ // using model from
http://sources.debian.net/src/iceweasel/21.0-1/dom/plugins/test/testplugin/nptest.cpp#L672
+ if (pFuncs->size < (offsetof(NPNetscapeFuncs, setexception) +
sizeof(void*)))
return NPERR_INVALID_FUNCTABLE_ERROR;

NPNFuncs.size = pFuncs->size;
Reply all
Reply to author
Forward
0 new messages