Bug 1312594: Do not clear resource when error occurs. r=jwwang
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 25 Oct 2016 13:36:26 +1100
changeset 319201 99efd9af4a01001209a5072c67497e0ff973ca3e
parent 319200 fe1bae8e454ef0f6d98a07c58f7b28591d2e2f09
child 319202 5283a6d1c99f4bef96db734a83487b8569dd4c9f
push id33482
push userjyavenard@mozilla.com
push dateTue, 25 Oct 2016 03:57:12 +0000
treeherderautoland@99efd9af4a01 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1312594
milestone52.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 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 {