diff options
author | Moonchild <moonchild@palemoon.org> | 2022-09-22 13:16:48 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-09-22 13:16:48 +0000 |
commit | 7cd578bbc606327d856ef5f89dbcca90589ab159 (patch) | |
tree | bd1268b7ef1fa426cb00ac5a227cc68c20fb4386 | |
parent | 1e91df628a21efcf5902408a35c2f3d1ee24e738 (diff) | |
parent | 47a7de8aa43bc2cabdaeb52374418327e345f870 (diff) | |
download | uxp-7cd578bbc606327d856ef5f89dbcca90589ab159.tar.gz |
Merge branch 'master' into releaseRC_20220922
-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; } |