Bug 1309162 - part6 : remove useless comment. r=jwwang
authorAlastor Wu <alwu@mozilla.com>
Tue, 29 Nov 2016 12:40:45 +0800
changeset 324593 eef982c27c7b481178fa5f8776dd1e6fbb17ab81
parent 324592 583e3edec539669eb7d6c193d25f721c94328e0e
child 324594 716be76c9a2f05cf595f05f3a366d54c5bf9df41
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjwwang
bugs1309162, 1302350
milestone53.0a1
Bug 1309162 - part6 : remove useless comment. r=jwwang 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;