mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-07-21 03:48:43 +00:00
[DOM] Don't reveal error details for CORS-cross-origin decoding errors.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user