Bug 1620113 - part7 : revert the workaround in 'browser_media_control_stop_timer.js'. r=chunmin
authoralwu <alwu@mozilla.com>
Thu, 26 Mar 2020 19:07:28 +0000
changeset 520631 827124686e243c6e7d51a309a84b6eb7974747f7
parent 520630 3d865b06d46ded6ad5d0e05a2b6412a7a760aab6
child 520632 03c0aa19b1b703e48b466734b60b83e26d4dd935
push id37254
push usernerli@mozilla.com
push dateFri, 27 Mar 2020 04:48:07 +0000
treeherdermozilla-central@2d758b42bd73 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschunmin
bugs1620113
milestone76.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 1620113 - part7 : revert the workaround in 'browser_media_control_stop_timer.js'. r=chunmin Differential Revision: https://phabricator.services.mozilla.com/D67715
dom/media/mediacontrol/tests/browser_media_control_stop_timer.js
--- a/dom/media/mediacontrol/tests/browser_media_control_stop_timer.js
+++ b/dom/media/mediacontrol/tests/browser_media_control_stop_timer.js
@@ -11,21 +11,17 @@ const PAGE_NON_AUTOPLAY =
   "https://example.com/browser/dom/media/mediacontrol/tests/file_non_autoplay.html";
 
 const testVideoId = "video";
 
 add_task(async function setupTestingPref() {
   await SpecialPowers.pushPrefEnv({
     set: [
       ["media.mediacontrol.testingevents.enabled", true],
-      // As `main-media-controller-playback-changed` is dispatched asynchronously, if
-      // we want to receive it after pausing media, we should postpone the time of
-      // triggering the stop timer. That value should be changed to 0 after landing
-      // bug1620113.
-      ["media.mediacontrol.stopcontrol.timer.ms", 2000],
+      ["media.mediacontrol.stopcontrol.timer.ms", 0],
     ],
   });
 });
 
 /**
  * This test is used to check the stop timer for media element, which would stop
  * media control for the specific element when the element has been paused over
  * certain length of time. (That is controlled by the value of the pref