Bug 1111628 - White-list the non-zero timeout usage in file_fullscreen-utils.js; r=cpearce
authorEhsan Akhgari <ehsan@mozilla.com>
Sun, 21 Dec 2014 00:13:56 -0500
changeset 220770 37b71b9bdb3edea32ec2b6aeef15ebffb45f1291
parent 220769 bce8b4207a4507f000a0567bc2de68568c270668
child 220771 e74b37a87b93704b0c97e4c87ab88c51f8765039
push id53184
push usereakhgari@mozilla.com
push dateSun, 21 Dec 2014 05:14:06 +0000
treeherdermozilla-inbound@37b71b9bdb3e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1111628
milestone37.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 1111628 - White-list the non-zero timeout usage in file_fullscreen-utils.js; r=cpearce
dom/html/test/file_fullscreen-utils.js
--- a/dom/html/test/file_fullscreen-utils.js
+++ b/dom/html/test/file_fullscreen-utils.js
@@ -27,16 +27,21 @@ function ok(condition, msg) {
   }
 }
 
 // On Linux we sometimes receive fullscreenchange events before the window
 // has finished transitioning to fullscreen. This can cause problems and
 // test failures, so work around it on Linux until we can get a proper fix.
 const workAroundFullscreenTransition = navigator.userAgent.indexOf("Linux") != -1;
 
+if (workAroundFullscreenTransition) {
+  SimpleTest.requestFlakyTimeout("We need to wait an arbitrary and non-zero " +
+    "amount of time in case of the Linux specific workaround to avoid busy-waiting.");
+}
+
 // Adds a listener that will be called once a fullscreen transition
 // is complete. When type==='enter', callback is called when we've
 // received a fullscreenchange event, and the fullscreen transition is
 // complete. When type==='exit', callback is called when we've
 // received a fullscreenchange event and the window dimensions match
 // the window dimensions when the window opened (so don't resize the
 // window while running your test!). inDoc is the document which
 // the listeners are added on, if absent, the listeners are added to