Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2022-09-23 11:04:25 +08:00
commit f84bc6d605
9 changed files with 46 additions and 47 deletions

View file

@ -285,7 +285,8 @@ bool DecoderTraits::ShouldHandleMediaType(const char* aMIMEType,
// behavior, where they use their helper apps to open WAV audio
// instead. We should allow this old behavior behind a pref for
// those who want it.
if (!Preferences::GetBool("media.wave.play-stand-alone", true)) {
if (!Preferences::GetBool("media.wave.play-stand-alone", true) &&
IsWaveSupportedType(nsDependentCString(aMIMEType))) {
return false;
}