Bug 1343161 - StoreDecodeError from HTMLMediaElement::DecodeError - r=jya
authorGerald Squelart <gsquelart@mozilla.com>
Tue, 21 Feb 2017 14:02:11 +1100
changeset 394171 d6723e7b7126d589a7c3668c3fda1fbe720016ca
parent 394170 2d1f22488076c6c45e0c7dc7b8207075932b5a47
child 394172 3e1458b66c24f63f4ae813b1602748e0953b47ab
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1343161
milestone54.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 1343161 - StoreDecodeError from HTMLMediaElement::DecodeError - r=jya MozReview-Commit-ID: 8Q66JScrrxS
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -5261,16 +5261,19 @@ void HTMLMediaElement::NetworkError()
 
 void HTMLMediaElement::DecodeError(const MediaResult& aError)
 {
   nsAutoString src;
   GetCurrentSrc(src);
   const char16_t* params[] = { src.get() };
   ReportLoadError("MediaLoadDecodeError", params, ArrayLength(params));
 
+  DecoderDoctorDiagnostics diagnostics;
+  diagnostics.StoreDecodeError(OwnerDoc(), aError, src, __func__);
+
   AudioTracks()->EmptyTracks();
   VideoTracks()->EmptyTracks();
   if (mIsLoadingFromSourceChildren) {
     mErrorSink->ResetError();
     if (mSourceLoadCandidate) {
       DispatchAsyncSourceError(mSourceLoadCandidate);
       QueueLoadFromSourceTask();
     } else {