Bug 790483 - Fix dependency on stale plugin enabledState in accessible tests. r=surkov, a=lsblakk
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Tue, 24 Sep 2013 17:21:49 +0200
changeset 160761 f081b1e1b442910bdf1d60b502a404d510a12028
parent 160760 618d9395bfbdfb81b461b933aa520b5fcdb5c02b
child 160762 9e5e23f67e318511b385f0d29be78e149417f286
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov, lsblakk
bugs790483
milestone26.0a2
Bug 790483 - Fix dependency on stale plugin enabledState in accessible tests. r=surkov, a=lsblakk
accessible/tests/mochitest/focus/test_takeFocus.html
--- a/accessible/tests/mochitest/focus/test_takeFocus.html
+++ b/accessible/tests/mochitest/focus/test_takeFocus.html
@@ -66,16 +66,17 @@
     }
 
     function waitForPlugin()
     {
       window.setTimeout((isAccessible("plugin") ? doTest : waitForPlugin), 0);
     }
 
     SimpleTest.waitForExplicitFinish();
+    setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
     addA11yLoadEvent(waitForPlugin);
   </script>
 </head>
 
 <body>
 
   <a target="_blank"
      href="https://bugzilla.mozilla.org/show_bug.cgi?id=429547"