Bug 1838052 - Allow audio/aacp to always bypass the ORB check r=farre,necko-reviewers,valentin, a=dmeehan

audio/aacp is a variant of acc, since we've allowed acc, accp should be
allowed as well.

Differential Revision: https://phabricator.services.mozilla.com/D180830
This commit is contained in:
Sean Feng 2023-06-13 16:51:53 +00:00
parent d28c9e2e61
commit 6c168678ea
2 changed files with 3 additions and 1 deletions

View File

@ -130,6 +130,7 @@
#define AUDIO_MIDI "audio/x-midi"
#define AUDIO_MATROSKA "audio/x-matroska"
#define AUDIO_AAC "audio/aac"
#define AUDIO_AACP "audio/aacp"
#define AUDIO_MPEG_TS "audio/mp2t"
#define AUDIO_MPEG_URL "audio/mpegurl"

View File

@ -57,7 +57,8 @@ static bool IsOpaqueSafeListedSpecBreakingMIMEType(
// a better way. Chromium currently allows all "audio/*" and "video/*", but
// from discussion in bug, we want to try only "audio/mpeg".
if (aContentType.EqualsLiteral(AUDIO_MP3) ||
aContentType.EqualsLiteral(AUDIO_AAC)) {
aContentType.EqualsLiteral(AUDIO_AAC) ||
aContentType.EqualsLiteral(AUDIO_AACP)) {
return true;
}