diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp index b3cc0d5d3c92..d7cf4d2dfec3 100644 --- a/dom/media/MediaDecoderStateMachine.cpp +++ b/dom/media/MediaDecoderStateMachine.cpp @@ -706,6 +706,12 @@ private: void StartDormantTimer() { + if (!mMaster->mMediaSeekable) { + // Don't enter dormant if the media is not seekable because we need to + // seek when exiting dormant. + return; + } + auto timeout = MediaPrefs::DormantOnPauseTimeout(); if (timeout < 0) { // Disabled when timeout is negative.