diff --git a/content/html/content/src/HTMLMediaElement.cpp b/content/html/content/src/HTMLMediaElement.cpp index 0349b708750..86da5c2be9b 100644 --- a/content/html/content/src/HTMLMediaElement.cpp +++ b/content/html/content/src/HTMLMediaElement.cpp @@ -2097,6 +2097,8 @@ HTMLMediaElement::Play(ErrorResult& aRv) } } + SetPlaybackRate(mDefaultPlaybackRate); + mPaused = false; mAutoplaying = false; // We changed mPaused and mAutoplaying which can affect AddRemoveSelfReference diff --git a/content/media/test/Makefile.in b/content/media/test/Makefile.in index ec9b6936af4..f378f3741f4 100644 --- a/content/media/test/Makefile.in +++ b/content/media/test/Makefile.in @@ -143,7 +143,6 @@ MOCHITEST_FILES = \ test_VideoPlaybackQuality.html \ test_VideoPlaybackQuality_disabled.html \ test_webvtt_disabled.html \ - test_playback_rate_playpause.html \ $(NULL) # Disabled on Windows for frequent intermittent failures diff --git a/content/media/test/test_playback_rate_playpause.html b/content/media/test/test_playback_rate_playpause.html deleted file mode 100644 index 7f22432ae6c..00000000000 --- a/content/media/test/test_playback_rate_playpause.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - Test that the playbackRate property is not reset when resuming the playback - - - - - -
-
-
-
-
- - diff --git a/toolkit/content/widgets/videocontrols.xml b/toolkit/content/widgets/videocontrols.xml index 1e4a544f307..33f1b4ecea3 100644 --- a/toolkit/content/widgets/videocontrols.xml +++ b/toolkit/content/widgets/videocontrols.xml @@ -1004,7 +1004,6 @@ if (this.video.paused || this.video.ended) { this._triggeredByControls = true; this.hideClickToPlay(); - this.video.playbackRate = this.video.defaultPlaybackRate; this.video.play(); } else { this.video.pause();