summaryrefslogtreecommitdiffstats
path: root/dom/media/test/can_play_type_ogg.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /dom/media/test/can_play_type_ogg.js
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/test/can_play_type_ogg.js')
-rw-r--r--dom/media/test/can_play_type_ogg.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/dom/media/test/can_play_type_ogg.js b/dom/media/test/can_play_type_ogg.js
index 6572ab7c0f..e2c974d601 100644
--- a/dom/media/test/can_play_type_ogg.js
+++ b/dom/media/test/can_play_type_ogg.js
@@ -5,18 +5,23 @@ function check_ogg(v, enabled, finish) {
function basic_test() {
return new Promise(function (resolve) {
- // Ogg types
- check("video/ogg", "maybe");
+ if (SpecialPowers.getBoolPref("media.theora.enabled")) {
+ check("video/ogg", "maybe");
+ check("video/ogg; codecs=vorbis", "probably");
+ check("video/ogg; codecs=vorbis,theora", "probably");
+ check('video/ogg; codecs="vorbis, theora"', "probably");
+ check("video/ogg; codecs=theora", "probably");
+ } else {
+ check("video/ogg", "");
+ check("video/ogg; codecs=vorbis", "");
+ check("video/ogg; codecs=vorbis,theora", "");
+ check('video/ogg; codecs="vorbis, theora"', "");
+ check("video/ogg; codecs=theora", "");
+ }
check("audio/ogg", "maybe");
check("application/ogg", "maybe");
- // Supported Ogg codecs
check("audio/ogg; codecs=vorbis", "probably");
- check("video/ogg; codecs=vorbis", "probably");
- check("video/ogg; codecs=vorbis,theora", "probably");
- check('video/ogg; codecs="vorbis, theora"', "probably");
- check("video/ogg; codecs=theora", "probably");
-
resolve();
});
}