Bug#743440: iceweasel not accessible (to screen readers, atk, spi)

Samuel Thibault sthibault at debian.org
Sun Jul 20 22:16:23 UTC 2014


Hello,

Jarek Czekalski, le Wed 02 Apr 2014 20:22:59 +0200, a écrit :
> The bug is well known and filed as
> https://bugzilla.mozilla.org/show_bug.cgi?id=743580

Upstream commited a fix, which I have attached to this mail.  The
removed code was used for old gnome versions, which are no more in
Jessie.  I confirm that it fixes things in Debian, could it be added
to Debian's iceweasel?

Our blind users using the testing distribution currently can't use
iceweasel at all, unless using the LD_LIBRARY_PATH hack...

Thanks,
Samuel
-------------- next part --------------

# HG changeset patch
# User Trevor Saunders <trev.saunders at gmail.com>
# Date 1399052780 14400
# Node ID 6b3e73a12bb603a184cf3c945eb14a4d43ed5048
# Parent  f4693085c5070693ecbbf1827c7e3f37b0d23311
bug 743580 - don't remove atk-bridge from GTK_MODULES during startup r=ginn, karlt

diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -2912,29 +2912,18 @@ XREMain::XRE_mainInit(bool* aExitFlag)
       Output(true, "Could not determine HOME directory");
       return 1;
     }
     SaveWordToEnv("HOME", nsDependentCString(pw->pw_dir));
   }
 #endif
 
 #ifdef MOZ_ACCESSIBILITY_ATK
-  // Reset GTK_MODULES, strip atk-bridge if exists
-  // Mozilla will load libatk-bridge.so later if necessary
-  const char* gtkModules = PR_GetEnv("GTK_MODULES");
-  if (gtkModules && *gtkModules) {
-    nsCString gtkModulesStr(gtkModules);
-    gtkModulesStr.ReplaceSubstring("atk-bridge", "");
-    char* expr = PR_smprintf("GTK_MODULES=%s", gtkModulesStr.get());
-    if (expr)
-      PR_SetEnv(expr);
-    // We intentionally leak |expr| here since it is required by PR_SetEnv.
-  }
-
-  // Suppress atk-bridge init at startup, it works after GNOME 2.24.2
+  // Suppress atk-bridge init at startup, until mozilla accessibility is
+  // initialized.  This works after gnome 2.24.2.
   SaveToEnv("NO_AT_BRIDGE=1");
 #endif
 
   // Check for application.ini overrides
   const char* override = nullptr;
   ar = CheckArg("override", true, &override);
   if (ar == ARG_BAD) {
     Output(true, "Incorrect number of arguments passed to -override");



More information about the pkg-mozilla-maintainers mailing list