diff options
author | Moonchild <moonchild@palemoon.org> | 2022-09-22 13:14:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-09-22 13:14:17 +0000 |
commit | 47a7de8aa43bc2cabdaeb52374418327e345f870 (patch) | |
tree | 695204119af124bc422a493296b26a4e10452598 | |
parent | 1a5e2e32e1ea8322e02cbbe94be48801cab974f0 (diff) | |
download | uxp-47a7de8aa43bc2cabdaeb52374418327e345f870.tar.gz |
Issue #1977 - Follow-up: Correct pref check to be selective on wave formats only.
-rw-r--r-- | dom/media/DecoderTraits.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/media/DecoderTraits.cpp b/dom/media/DecoderTraits.cpp index d4968c0b4e..2309a80202 100644 --- a/dom/media/DecoderTraits.cpp +++ b/dom/media/DecoderTraits.cpp @@ -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; } |