Bug 942411 - Try to ensure that the test window has focus before running the test
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 15 Mar 2014 17:22:00 -0400
changeset 190980 0d77baea6b5877f2e87e0e764ad2416632c39e2b
parent 190979 449272159e813b50f0a3ab378e4c51dd13d9f184
child 190981 a94de1fe002c7ca3c60f7a5a14210c8bd242e501
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs942411
milestone30.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 942411 - Try to ensure that the test window has focus before running the test
content/html/content/test/test_ignoreuserfocus.html
--- a/content/html/content/test/test_ignoreuserfocus.html
+++ b/content/html/content/test/test_ignoreuserfocus.html
@@ -138,13 +138,15 @@
         document.body.appendChild(witness2);
       }
       addEventListener("load", function() {
         SpecialPowers.addPermission("browser", true, document);
         SpecialPowers.pushPrefEnv({
           "set": [
             ["dom.mozBrowserFramesEnabled", true]
           ]
-        }, runTest);
+        }, function() {
+          SimpleTest.waitForFocus(runTest);
+        });
       });
     </script>
   </body>
 </html>