Bug 1173971 - Force core Xlib events on GTK3. r=karlt
authorAndrew Comminos <acomminos@mozilla.com>
Fri, 12 Jun 2015 06:55:00 -0400
changeset 279748 d16d6da34d3c5ab7a5206aa5de2d83ed7ba6152e
parent 279747 783aeb2403869787aafb2a15c57e27b5dc7bde12
child 279749 4a14c2cb4d1ad93a34c2c5054c36da9ea67ae5c6
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1173971
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1173971 - Force core Xlib events on GTK3. r=karlt
testing/mochitest/runtests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1537,16 +1537,21 @@ class Mochitest(MochitestUtilsMixin):
         if debugger and not options.slowscript:
             browserEnv["JS_DISABLE_SLOW_SCRIPT_SIGNALS"] = "1"
 
         # For e10s, our tests default to suppressing the "unsafe CPOW usage"
         # warnings that can plague test logs.
         if not options.enableCPOWWarnings:
             browserEnv["DISABLE_UNSAFE_CPOW_WARNINGS"] = "1"
 
+        # Force use of core Xlib events on GTK3 to work around focus bug.
+        # See bug 1170342.
+        if mozinfo.info.get('toolkit') == 'gtk3':
+            browserEnv["GDK_CORE_DEVICE_EVENTS"] = "1"
+
         return browserEnv
 
     def cleanup(self, options):
         """ remove temporary files and profile """
         if hasattr(self, 'manifest') and self.manifest is not None:
             os.remove(self.manifest)
         if hasattr(self, 'profile'):
             del self.profile