mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
[media] Only include source error details in debugging scenarios.
Unless a user is debugging media errors, this detail is unnecessary to report and could include sensitive data which could be abused by third-party requesters. This aligns it with the standard success/error paradigms in normal browsing situations.
This commit is contained in:
parent
527d5c6252
commit
209eb0a245
2 changed files with 21 additions and 1 deletions
|
|
@ -5456,3 +5456,11 @@ pref("prompts.authentication_dialog_abuse_limit", 0);
|
|||
// Whether module scripts (<script type="module">) are enabled for content.
|
||||
pref("dom.moduleScripts.enabled", true);
|
||||
|
||||
// Report details when a media source error occurs?
|
||||
// Enabled by default in debug builds, otherwise should be explicitly enabled
|
||||
// by the user to prevent XO leaking of the response status (CVE-2020-15666)
|
||||
#ifdef DEBUG
|
||||
pref("media.sourceErrorDetails.enabled", true);
|
||||
#else
|
||||
pref("media.sourceErrorDetails.enabled", false);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue