diff options
-rw-r--r-- | dom/html/HTMLMediaElement.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 0828208f6..1ff1fd7a4 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -4614,8 +4614,12 @@ void HTMLMediaElement::DecodeError(const MediaResult& aError) } } else if (mReadyState == nsIDOMHTMLMediaElement::HAVE_NOTHING) { NoSupportedMediaSourceError(aError.Description()); - } else { + } else if (IsCORSSameOrigin()) { Error(MEDIA_ERR_DECODE, aError.Description()); + } else { + nsAutoCString eMessage; + eMessage.AssignLiteral("Failed to decode media"); + Error(MEDIA_ERR_DECODE, eMessage); } } |