Bug 1144509: Part1. Fire timeupdate before seeked event as per spec. r=karlt
authorJean-Yves Avenard <jyavenard@mozilla.com>
Mon, 23 Mar 2015 21:03:39 +1100
changeset 265347 749fd9127c14a242042c0f45423bbb5ab60e2cf9
parent 265346 41f424ff87542c6cd42c4fb36605c970d95e1d17
child 265348 0abff0bf399a111006b579ac327d5c83b6843885
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1144509
milestone39.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 1144509: Part1. Fire timeupdate before seeked event as per spec. r=karlt
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -3238,16 +3238,17 @@ void HTMLMediaElement::SeekStarted()
   }
   FireTimeUpdate(false);
 }
 
 void HTMLMediaElement::SeekCompleted()
 {
   mPlayingBeforeSeek = false;
   SetPlayedOrSeeked(true);
+  FireTimeUpdate(false);
   DispatchAsyncEvent(NS_LITERAL_STRING("seeked"));
   // We changed whether we're seeking so we need to AddRemoveSelfReference
   AddRemoveSelfReference();
   if (mTextTrackManager) {
     mTextTrackManager->DidSeek();
   }
   if (mCurrentPlayRangeStart == -1.0) {
     mCurrentPlayRangeStart = CurrentTime();