summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-09-22 13:16:48 +0000
committerMoonchild <moonchild@palemoon.org>2022-09-22 13:16:48 +0000
commit7cd578bbc606327d856ef5f89dbcca90589ab159 (patch)
treebd1268b7ef1fa426cb00ac5a227cc68c20fb4386
parent1e91df628a21efcf5902408a35c2f3d1ee24e738 (diff)
parent47a7de8aa43bc2cabdaeb52374418327e345f870 (diff)
downloaduxp-RC_20220922.tar.gz
Merge branch 'master' into releaseRC_20220922
-rw-r--r--dom/media/DecoderTraits.cpp3
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;
}