Bug 1309162 - part6 : remove useless comment. draft
authorAlastor Wu <alwu@mozilla.com>
Tue, 29 Nov 2016 12:40:45 +0800
changeset 445138 51b51a9f9fe4fb1ad9823dd6f50f5b8883bbb821
parent 445137 d0bb75fa673d31ccff4ed616dfc0cc099206fa05
child 445139 bbf2982658ca1c6c10438f0e6011b6d5a1968d1c
push id37425
push useralwu@mozilla.com
push dateTue, 29 Nov 2016 05:50:50 +0000
bugs1309162, 1302350
milestone53.0a1
Bug 1309162 - part6 : remove useless comment. These comments should be removed after landing bug1302350. MozReview-Commit-ID: 7N0cWImZDDI
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -3616,19 +3616,16 @@ HTMLMediaElement::PlayInternal()
   mAutoplaying = false;
 
   // We changed mPaused and mAutoplaying which can affect AddRemoveSelfReference
   // and our preload status.
   AddRemoveSelfReference();
   UpdatePreloadAction();
   UpdateSrcMediaStreamPlaying();
 
-  // We should check audio channel playing state before dispatching any events,
-  // because we don't want to dispatch events for blocked media. For blocked
-  // media, the event would be pending until media is resumed.
   // TODO: If the playback has ended, then the user agent must set
   // seek to the effective start.
   if (oldPaused) {
     DispatchAsyncEvent(NS_LITERAL_STRING("play"));
     switch (mReadyState) {
     case nsIDOMHTMLMediaElement::HAVE_NOTHING:
       DispatchAsyncEvent(NS_LITERAL_STRING("waiting"));
       break;