Attempt to somewhat mitigate bug 573085.
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 18 Jun 2010 14:41:37 -0400
changeset 43812 0bb70936ae1ccdff480d436b7e93f9accb0c735f
parent 43811 b0db6edc6d6799ce3a386a511d8f421384859ec6
child 43813 fc8d9fb6770c942647134647789b1e571d66e19e
push id13907
push userbzbarsky@mozilla.com
push dateFri, 18 Jun 2010 18:41:50 +0000
treeherdermozilla-central@0bb70936ae1c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs573085
milestone1.9.3a6pre
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
Attempt to somewhat mitigate bug 573085.
accessible/tests/mochitest/test_nsIAccessible_focus.html
--- a/accessible/tests/mochitest/test_nsIAccessible_focus.html
+++ b/accessible/tests/mochitest/test_nsIAccessible_focus.html
@@ -72,17 +72,19 @@
         this.mElm = elmObj.value;
         this.mName = aPrettyName ? aPrettyName : aAccOrID;
         this.mCallback = aCallback;
 
         window.setTimeout(
           function(aFocusMgr)
           {
             aFocusMgr.checkWasFocusHandled();
-          }, 0, this);
+            // Try to work around bug 573085 by using a timeout that's a lot
+            // bigger than our refresh driver period.
+          }, 100, this);
       },
 
       // Private
       handleEvent: function handleEvent(aAccEvent)
       {
         var node = aAccEvent.DOMNode;
         if (node == this.mElm)
             this.mIsFocusHandled = true;