Bug 1312594: Do not clear resource when error occurs. r?jwwang draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 25 Oct 2016 13:36:26 +1100
changeset 429022 9020d7d653883a674b8564bd5026c18f97a05a49
parent 428736 c845bfd0accb7e0c29b41713255963b08006e701
child 429435 70dd9dcd8426132f99f247c8ed32d6395cdae01f
push id33473
push userbmo:jyavenard@mozilla.com
push dateTue, 25 Oct 2016 02:41:36 +0000
reviewersjwwang
bugs1312594
milestone52.0a1
Bug 1312594: Do not clear resource when error occurs. r?jwwang MozReview-Commit-ID: EFrURgSYvdb
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -4391,19 +4391,16 @@ void HTMLMediaElement::DecodeError(const
   nsAutoString src;
   GetCurrentSrc(src);
   const char16_t* params[] = { src.get() };
   ReportLoadError("MediaLoadDecodeError", params, ArrayLength(params));
 
   if (mDecoder) {
     ShutdownDecoder();
   }
-  RemoveMediaElementFromURITable();
-  mLoadingSrc = nullptr;
-  mMediaSource = nullptr;
   AudioTracks()->EmptyTracks();
   VideoTracks()->EmptyTracks();
   if (mIsLoadingFromSourceChildren) {
     mError = nullptr;
     if (mSourceLoadCandidate) {
       DispatchAsyncSourceError(mSourceLoadCandidate);
       QueueLoadFromSourceTask();
     } else {