summaryrefslogtreecommitdiff
blob: 073c611df8a9de5928c822a1e1722316a4b35898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Upstreamized patch wrt http://bugs.gentoo.org/attachment.cgi?id=273059
Fixes race condition where two different xulrunners are installed, and
old headers get picked up by mistake.

--- src/plugin_setup.cpp-old	2009-06-09 19:48:33.518153163 -0500
+++ src/plugin_setup.cpp	2009-06-09 19:48:12.522163011 -0500
@@ -362,7 +362,7 @@
 
     }
 
-    nperror = NPN_GetValue (instance->mInstance, NPNVSupportsWindowless, &supportsWindowless);
+    nperror = NPN_GetValue (instance->mInstance, (NPNVariable) 17 /* NPNVSupportsWindowless */, &supportsWindowless);
 	supportsWindowless = (nperror == NPERR_NO_ERROR) && supportsWindowless;
 	if (instance->windowless) {
 		if (supportsWindowless) {