Bug 1690976 - Don't reveal error details for CORS-cross-origin decoding errors. r=sstreich,bryce
Differential Revision: https://phabricator.services.mozilla.com/D104169
This commit is contained in:
@@ -5405,8 +5405,10 @@ void HTMLMediaElement::DecodeError(const MediaResult& aError) {
|
||||
}
|
||||
} else if (mReadyState == HAVE_NOTHING) {
|
||||
NoSupportedMediaSourceError(aError.Description());
|
||||
} else {
|
||||
} else if (IsCORSSameOrigin()) {
|
||||
Error(MEDIA_ERR_DECODE, aError.Description());
|
||||
} else {
|
||||
Error(MEDIA_ERR_DECODE, "Failed to decode media"_ns);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user