Backed out changeset 6b518e88bdf9 (bug 1450853) for perma failures on empty-samples.webm. CLOSED TREE
This commit is contained in:
@@ -2351,20 +2351,7 @@ void HTMLMediaElement::NoSupportedMediaSourceError(
|
||||
if (mDecoder) {
|
||||
ShutdownDecoder();
|
||||
}
|
||||
|
||||
bool isThirdPartyLoad = false;
|
||||
nsresult rv = mSrcAttrTriggeringPrincipal->IsThirdPartyURI(mLoadingSrc,
|
||||
&isThirdPartyLoad);
|
||||
if (NS_SUCCEEDED(rv) && isThirdPartyLoad) {
|
||||
// aErrorDetails can include sensitive details like MimeType or HTTP Status
|
||||
// Code. In case we're loading a 3rd party resource we should not leak this
|
||||
// and pass a Generic Error Message
|
||||
mErrorSink->SetError(MEDIA_ERR_SRC_NOT_SUPPORTED,
|
||||
"Failed to open media"_ns);
|
||||
} else {
|
||||
mErrorSink->SetError(MEDIA_ERR_SRC_NOT_SUPPORTED, aErrorDetails);
|
||||
}
|
||||
|
||||
mErrorSink->SetError(MEDIA_ERR_SRC_NOT_SUPPORTED, aErrorDetails);
|
||||
RemoveMediaTracks();
|
||||
ChangeDelayLoadStatus(false);
|
||||
UpdateAudioChannelPlayingState();
|
||||
|
||||
Reference in New Issue
Block a user