openbsd-ports/www/mozilla-firefox/patches/patch-accessible_src_atk_nsAppRootAccessible_cpp
landry 4d98df5567 Update to mozilla-firefox 3.6.6. Fixes a bunch of MFSA, see
http://www.mozilla.org/security/known-vulnerabilities/firefox36.html
The new plugin sandboxing code is disabled because :
- it only supports binary blobs plugins we don't have
- it is an horrible maze of #ifdef linux-apple-win32 coming straight
  from an old version of chromium. Future versions should have better BSD
support..
tested by several on ports@, thanks!
2010-06-28 21:24:22 +00:00

38 lines
1.7 KiB
Plaintext

$OpenBSD: patch-accessible_src_atk_nsAppRootAccessible_cpp,v 1.4 2010/06/28 21:24:22 landry Exp $
--- accessible/src/atk/nsAppRootAccessible.cpp.orig Fri Jun 11 22:40:50 2010
+++ accessible/src/atk/nsAppRootAccessible.cpp Thu Jun 24 10:08:30 2010
@@ -56,7 +56,7 @@ typedef GType (* AtkGetTypeType) (void);
GType g_atk_hyperlink_impl_type = G_TYPE_INVALID;
static PRBool sATKChecked = PR_FALSE;
static PRLibrary *sATKLib = nsnull;
-static const char sATKLibName[] = "libatk-1.0.so.0";
+static const char sATKLibName[] = "libatk-1.0.so";
static const char sATKHyperlinkImplGetTypeSymbol[] =
"atk_hyperlink_impl_get_type";
static const char sAccEnv [] = "GNOME_ACCESSIBILITY";
@@ -118,8 +118,8 @@ static GHashTable *key_listener_list = NULL;
static guint key_snooper_id = 0;
G_BEGIN_DECLS
-typedef void (*GnomeAccessibilityInit) (void);
-typedef void (*GnomeAccessibilityShutdown) (void);
+typedef void (*GnomeAccessibilityInit) ();
+typedef void (*GnomeAccessibilityShutdown) ();
G_END_DECLS
struct MaiUtil
@@ -762,9 +762,11 @@ LoadGtkModule(GnomeAccessibilityModule& aModule)
}
//we have loaded the library, try to get the function ptrs
- if (!(aModule.init = PR_FindFunctionSymbol(aModule.lib,
+ if (!(aModule.init = (GnomeAccessibilityInit)
+ PR_FindFunctionSymbol(aModule.lib,
aModule.initName)) ||
- !(aModule.shutdown = PR_FindFunctionSymbol(aModule.lib,
+ !(aModule.shutdown = (GnomeAccessibilityShutdown)
+ PR_FindFunctionSymbol(aModule.lib,
aModule.shutdownName))) {
//fail, :(