forked from mirrors/gecko-dev
Backed out 14 changesets (bug 1860492) for mda failure on test_closing_connections
Backed out changeset 9b8435c1c982 (bug 1860492) Backed out changeset 08603e5ea8a0 (bug 1860492) Backed out changeset 93086bc64d37 (bug 1860492) Backed out changeset f8cbb9933469 (bug 1860492) Backed out changeset f5e2a92235f1 (bug 1860492) Backed out changeset 0038d6d54690 (bug 1860492) Backed out changeset 24a1fb93d4a8 (bug 1860492) Backed out changeset c2c11ee3f79f (bug 1860492) Backed out changeset 9983c1ddee85 (bug 1860492) Backed out changeset b9286e049dea (bug 1860492) Backed out changeset d1d98783c88d (bug 1860492) Backed out changeset 22dd17861e80 (bug 1860492) Backed out changeset 7d823668fba7 (bug 1860492) Backed out changeset 024863677345 (bug 1860492)
This commit is contained in:
parent
c9bea63c35
commit
e3df66c4e8
259 changed files with 1939 additions and 263 deletions
|
|
@ -911,6 +911,7 @@ mobile/android/geckoview/src/androidTest/assets/www/autoplay.html
|
|||
mobile/android/geckoview/src/androidTest/assets/www/badVideoPath.html
|
||||
mobile/android/geckoview/src/androidTest/assets/www/context_menu_video.html
|
||||
mobile/android/geckoview/src/androidTest/assets/www/mp4.html
|
||||
mobile/android/geckoview/src/androidTest/assets/www/ogg.html
|
||||
mobile/android/geckoview/src/androidTest/assets/www/webm.html
|
||||
netwerk/test/browser/103_preload_iframe.html
|
||||
netwerk/test/browser/post.html
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ support-files = [
|
|||
"subtst_contextmenu_xul.xhtml",
|
||||
"ctxmenu-image.png",
|
||||
"../general/head.js",
|
||||
"../general/video.ogg",
|
||||
"../general/audio.ogg",
|
||||
"../../../../../toolkit/components/pdfjs/test/file_pdfjs_test.pdf",
|
||||
"contextmenu_common.js",
|
||||
|
|
@ -18,7 +19,6 @@ support-files = [
|
|||
["browser_bug1798178.js"]
|
||||
|
||||
["browser_contextmenu.js"]
|
||||
support-files = [ "../general/video.webm" ]
|
||||
tags = "fullscreen"
|
||||
skip-if = [
|
||||
"os == 'linux'",
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ add_task(async function test_setup_html() {
|
|||
audio.loop = true;
|
||||
audio.src = "audio.ogg";
|
||||
video.loop = true;
|
||||
video.src = "video.webm";
|
||||
video.src = "video.ogg";
|
||||
|
||||
let awaitPause = ContentTaskUtils.waitForEvent(audio, "pause");
|
||||
await ContentTaskUtils.waitForCondition(
|
||||
|
|
|
|||
|
|
@ -26,14 +26,14 @@ document.getElementById("shadow-host-in-link").attachShadow({ mode: "closed" }).
|
|||
<image id="test-svg-image" href="ctxmenu-image.png"/>
|
||||
</svg>
|
||||
<canvas id="test-canvas" width="100" height="100" style="background-color: blue"></canvas>
|
||||
<video controls id="test-video-ok" src="video.webm" width="100" height="100" style="background-color: green"></video>
|
||||
<video controls id="test-video-ok" src="video.ogg" width="100" height="100" style="background-color: green"></video>
|
||||
<video id="test-audio-in-video" src="audio.ogg" width="100" height="100" style="background-color: red"></video>
|
||||
<video controls id="test-video-bad" src="bogus.duh" width="100" height="100" style="background-color: orange"></video>
|
||||
<video controls id="test-video-bad2" width="100" height="100" style="background-color: yellow">
|
||||
<source src="bogus.duh" type="video/durrrr;">
|
||||
</video>
|
||||
<iframe id="test-iframe" width="98" height="98" style="border: 1px solid black"></iframe>
|
||||
<iframe id="test-video-in-iframe" src="video.webm" width="98" height="98" style="border: 1px solid black"></iframe>
|
||||
<iframe id="test-video-in-iframe" src="video.ogg" width="98" height="98" style="border: 1px solid black"></iframe>
|
||||
<iframe id="test-audio-in-iframe" src="audio.ogg" width="98" height="98" style="border: 1px solid black"></iframe>
|
||||
<iframe id="test-image-in-iframe" src="ctxmenu-image.png" width="98" height="98" style="border: 1px solid black"></iframe>
|
||||
<iframe id="test-pdf-viewer-in-frame" src="file_pdfjs_test.pdf" width="100" height="100" style="border: 1px solid black"></iframe>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@
|
|||
<body>
|
||||
Browser context menu subtest.
|
||||
<a href="moz-extension://foo-bar/tab.html" id="link">Link to an extension resource</a>
|
||||
<video src="moz-extension://foo-bar/video.webm" id="video"></video>
|
||||
<video src="moz-extension://foo-bar/video.ogg" id="video"></video>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@ support-files = [
|
|||
"title_test.svg",
|
||||
"unknownContentType_file.pif",
|
||||
"unknownContentType_file.pif^headers^",
|
||||
"video.ogg",
|
||||
"web_video.html",
|
||||
"web_video1.ogv",
|
||||
"web_video1.ogv^headers^",
|
||||
"!/image/test/mochitest/blue.png",
|
||||
"!/toolkit/content/tests/browser/common/mockTransfer.js",
|
||||
]
|
||||
|
|
@ -207,7 +211,6 @@ support-files = [
|
|||
"dummy.ics",
|
||||
"dummy.ics^headers^",
|
||||
"redirect_download.sjs",
|
||||
"video.webm",
|
||||
]
|
||||
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
|
||||
|
||||
|
|
@ -432,19 +435,9 @@ skip-if = [
|
|||
"os == 'win' && debug",
|
||||
"os =='linux'", #Bug 1212419
|
||||
]
|
||||
support-files = [
|
||||
"web_video.html",
|
||||
"web_video1.webm",
|
||||
"web_video1.webm^headers^",
|
||||
]
|
||||
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
|
||||
|
||||
["browser_save_video_frame.js"]
|
||||
support-files = [
|
||||
"web_video.html",
|
||||
"web_video1.webm",
|
||||
"web_video1.webm^headers^",
|
||||
]
|
||||
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
|
||||
|
||||
["browser_selectTabAtIndex.js"]
|
||||
|
|
|
|||
|
|
@ -116,8 +116,8 @@ async function runTest(url) {
|
|||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
await testLink("link1", "test.txt");
|
||||
await testLink("link2", "video.webm");
|
||||
await testLink("link3", "just some video.webm");
|
||||
await testLink("link2", "video.ogg");
|
||||
await testLink("link3", "just some video.ogg");
|
||||
await testLink("link4", "with-target.txt");
|
||||
await testLink("link5", "javascript.html");
|
||||
await testLink("link6", "test.blob");
|
||||
|
|
@ -132,8 +132,8 @@ async function runTest(url) {
|
|||
// Check that we enforce the correct extension if the website's
|
||||
// is bogus or missing. These extensions can differ slightly (ogx vs ogg,
|
||||
// htm vs html) on different OSes.
|
||||
let webmExtension = getMIMEInfoForType("video/webm").primaryExtension;
|
||||
await testLink("link13", "no file extension." + webmExtension);
|
||||
let oggExtension = getMIMEInfoForType("application/ogg").primaryExtension;
|
||||
await testLink("link13", "no file extension." + oggExtension);
|
||||
|
||||
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1690051#c8
|
||||
if (AppConstants.platform != "win") {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ add_task(async function () {
|
|||
|
||||
is(
|
||||
fileName,
|
||||
"web-video1-expectedName.webm",
|
||||
"web-video1-expectedName.ogv",
|
||||
"Video file name is correctly retrieved from Content-Disposition http header"
|
||||
);
|
||||
resolve();
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=676619
|
|||
<ul>
|
||||
<li><a href="download_page_1.txt"
|
||||
download="test.txt" id="link1">Download "test.txt"</a></li>
|
||||
<li><a href="video.webm"
|
||||
download id="link2">Download "video.webm"</a></li>
|
||||
<li><a href="video.webm"
|
||||
download="just some video.webm" id="link3">Download "just some video.webm"</a></li>
|
||||
<li><a href="video.ogg"
|
||||
download id="link2">Download "video.ogg"</a></li>
|
||||
<li><a href="video.ogg"
|
||||
download="just some video.ogg" id="link3">Download "just some video.ogg"</a></li>
|
||||
<li><a href="download_page_2.txt"
|
||||
download="with-target.txt" id="link4">Download "with-target.txt"</a></li>
|
||||
<li><a href="javascript:(1+2)+''"
|
||||
|
|
@ -33,7 +33,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=676619
|
|||
download="download_page_4.txt" id="link11">Download "download_page_4.txt"</a></li>
|
||||
<li><a href="http://example.com/"
|
||||
download="example.com" id="link12" target="_blank">Download "example.com"</a></li>
|
||||
<li><a href="video.webm"
|
||||
<li><a href="video.ogg"
|
||||
download="no file extension" id="link13">Download "force extension"</a></li>
|
||||
<li><a href="dummy.ics"
|
||||
download="dummy.not-ics" id="link14">Download "dummy.not-ics"</a></li>
|
||||
|
|
|
|||
BIN
browser/base/content/test/general/video.ogg
Normal file
BIN
browser/base/content/test/general/video.ogg
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -5,6 +5,6 @@
|
|||
<body>
|
||||
This document has some web video in it.
|
||||
<br>
|
||||
<video src="web_video1.webm" id="video1"> </video>
|
||||
<video src="web_video1.ogv" id="video1"> </video>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
BIN
browser/base/content/test/general/web_video1.ogv
Normal file
BIN
browser/base/content/test/general/web_video1.ogv
Normal file
Binary file not shown.
|
|
@ -0,0 +1,3 @@
|
|||
Content-Disposition: filename="web-video1-expectedName.ogv"
|
||||
Content-Type: video/ogg
|
||||
|
||||
Binary file not shown.
|
|
@ -1,3 +0,0 @@
|
|||
Content-Disposition: filename="web-video1-expectedName.webm"
|
||||
Content-Type: video/webm
|
||||
|
||||
|
|
@ -5,7 +5,7 @@ support-files = [
|
|||
"image.html",
|
||||
"../general/audio.ogg",
|
||||
"../general/moz.png",
|
||||
"../general/video.webm",
|
||||
"../general/video.ogg",
|
||||
]
|
||||
|
||||
["browser_pageinfo_iframe_media.js"]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<html>
|
||||
<img src='moz.png' height=100 width=150 id='test-image'>
|
||||
<video src='video.webm' id='test-video'></video>
|
||||
<video src='video.ogg' id='test-video'></video>
|
||||
<audio src='audio.ogg' id='test-audio'></audio>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ https_first_disabled = true
|
|||
|
||||
["browser_sitespecific_video_zoom.js"]
|
||||
https_first_disabled = true
|
||||
support-files = ["../general/video.webm"]
|
||||
support-files = ["../general/video.ogg"]
|
||||
skip-if = [
|
||||
"os == 'win' && debug", # Bug 1315042
|
||||
"verify && debug && os == 'linux'", # Bug 1315042
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const TEST_PAGE =
|
|||
"http://example.org/browser/browser/base/content/test/zoom/zoom_test.html";
|
||||
const TEST_VIDEO =
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
"http://example.org/browser/browser/base/content/test/general/video.webm";
|
||||
"http://example.org/browser/browser/base/content/test/general/video.ogg";
|
||||
|
||||
var gTab1, gTab2, gLevel1;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ support-files = [
|
|||
"file_thirdPartyChild.script.js",
|
||||
"file_thirdPartyChild.sharedworker.js",
|
||||
"file_thirdPartyChild.track.vtt",
|
||||
"file_thirdPartyChild.video.webm",
|
||||
"file_thirdPartyChild.video.ogv",
|
||||
"file_thirdPartyChild.worker.fetch.html",
|
||||
"file_thirdPartyChild.worker.js",
|
||||
"file_thirdPartyChild.worker.request.html",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ let suffixes = [
|
|||
"xhr.html",
|
||||
"worker.xhr.html",
|
||||
"audio.ogg",
|
||||
"video.webm",
|
||||
"video.ogv",
|
||||
"track.vtt",
|
||||
"fetch.html",
|
||||
"worker.fetch.html",
|
||||
|
|
@ -176,7 +176,7 @@ async function doTest(aBrowser) {
|
|||
await SpecialPowers.spawn(aBrowser, [argObj], async function (arg) {
|
||||
content.windowUtils.clearSharedStyleSheetCache();
|
||||
|
||||
let videoURL = arg.urlPrefix + "file_thirdPartyChild.video.webm";
|
||||
let videoURL = arg.urlPrefix + "file_thirdPartyChild.video.ogv";
|
||||
let audioURL = arg.urlPrefix + "file_thirdPartyChild.audio.ogg";
|
||||
let trackURL = arg.urlPrefix + "file_thirdPartyChild.track.vtt";
|
||||
let URLSuffix = "?r=" + arg.randomSuffix;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const TEST_ORIGIN = `http://${TEST_FIRST_PARTY}`;
|
|||
const TEST_BASE_PATH =
|
||||
"/browser/browser/components/originattributes/test/browser/";
|
||||
const TEST_PATH = `${TEST_BASE_PATH}file_saveAs.sjs`;
|
||||
const TEST_PATH_VIDEO = `${TEST_BASE_PATH}file_thirdPartyChild.video.webm`;
|
||||
const TEST_PATH_VIDEO = `${TEST_BASE_PATH}file_thirdPartyChild.video.ogv`;
|
||||
const TEST_PATH_IMAGE = `${TEST_BASE_PATH}file_favicon.png`;
|
||||
|
||||
// For the "Save Page As" test, we will check the channel of the sub-resource
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ const HTTP_ORIGIN = "http://example.com";
|
|||
const SECOND_ORIGIN = "http://example.org";
|
||||
const URI_PATH = "/browser/browser/components/originattributes/test/browser/";
|
||||
const LINK_PATH = `${URI_PATH}file_saveAs.sjs`;
|
||||
// Reusing existing webm file for testing.
|
||||
const VIDEO_PATH = `${URI_PATH}file_thirdPartyChild.video.webm`;
|
||||
// Reusing existing ogv file for testing.
|
||||
const VIDEO_PATH = `${URI_PATH}file_thirdPartyChild.video.ogv`;
|
||||
// Reusing existing png file for testing.
|
||||
const IMAGE_PATH = `${URI_PATH}file_favicon.png`;
|
||||
const FRAME_PATH = `${SECOND_ORIGIN}${URI_PATH}file_saveAs.sjs?image=1`;
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -7,10 +7,6 @@ support-files = [
|
|||
"image.png",
|
||||
"video.sjs",
|
||||
]
|
||||
# The video used in those tests crash the Android emulator's VP9 decoder.
|
||||
prefs = [
|
||||
"media.android-media-codec.enabled=false",
|
||||
]
|
||||
|
||||
["test_canvas2d_crossorigin.html"]
|
||||
skip-if = [
|
||||
|
|
|
|||
|
|
@ -36,11 +36,7 @@ support-files = [
|
|||
"offscreencanvas_serviceworker_inner.html",
|
||||
"crossorigin/image.png",
|
||||
"crossorigin/video.sjs",
|
||||
"../../media/test/320x240.webm",
|
||||
]
|
||||
# The video used in those tests crash the Android emulator's VP9 decoder.
|
||||
prefs = [
|
||||
"media.android-media-codec.enabled=false",
|
||||
"../../media/test/320x240.ogv",
|
||||
]
|
||||
|
||||
["test_2d.clearRect.image.offscreen.html"]
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<body>
|
||||
|
||||
<img src="image_anim-gr.gif" id="image" class="resource">
|
||||
<video width="320" height="240" src="http://example.com/tests/dom/canvas/test/crossorigin/video.sjs?name=tests/dom/canvas/test/320x240.webm&type=video/webm&cors=anonymous" id="video" crossOrigin="anonymous" autoplay></video>
|
||||
<video width="320" height="240" src="http://example.com/tests/dom/canvas/test/crossorigin/video.sjs?name=tests/dom/canvas/test/320x240.ogv&type=video/ogg&cors=anonymous" id="video" crossOrigin="anonymous" autoplay></video>
|
||||
|
||||
<canvas id="c1" class="output" width="128" height="128"></canvas>
|
||||
<canvas id="c2" width="128" height="128"></canvas>
|
||||
|
|
@ -226,7 +226,7 @@ function testSecurityErrors() {
|
|||
reject();
|
||||
}
|
||||
|
||||
uncleanVideo.src = "http://example.com/tests/dom/canvas/test/crossorigin/video.sjs?name=tests/dom/canvas/test/320x240.webm&type=video/webm";
|
||||
uncleanVideo.src = "http://example.com/tests/dom/canvas/test/crossorigin/video.sjs?name=tests/dom/canvas/test/320x240.ogv&type=video/ogg";
|
||||
uncleanVideo.play();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ function isPixel(ctx, x, y, c, d) {
|
|||
}
|
||||
|
||||
//
|
||||
// The pattern of the 320x240.webm video.
|
||||
// The pattern of the 320x240.ogv video.
|
||||
// .------------------------------------------------.
|
||||
// | 255 | 255 | 0 | 0 | 255 | 255 | 0 |
|
||||
// | 255 | 255 | 255 | 255 | 0 | 0 | 0 |
|
||||
|
|
@ -135,7 +135,7 @@ var gJPEGBlob;
|
|||
|
||||
function prepareSources() {
|
||||
gVideo = document.createElement("video");
|
||||
gVideo.src = "http://example.com/tests/dom/canvas/test/crossorigin/video.sjs?name=tests/dom/canvas/test/320x240.webm&type=video/webm&cors=anonymous";
|
||||
gVideo.src = "http://example.com/tests/dom/canvas/test/crossorigin/video.sjs?name=tests/dom/canvas/test/320x240.ogv&type=video/ogg&cors=anonymous";
|
||||
gVideo.crossOrigin = "anonymous";
|
||||
gVideo.autoplay = "true"
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ support-files = [
|
|||
"webgl-util.js",
|
||||
"test_video_fastpath.js",
|
||||
"red-green.mp4",
|
||||
"red-green.theora.ogv",
|
||||
"red-green.webmvp8.webm",
|
||||
"red-green.webmvp9.webm",
|
||||
]
|
||||
|
|
@ -198,12 +199,20 @@ support-files = ["blank_15000x10000.png"]
|
|||
["test_video_fastpath_mp4.html"]
|
||||
skip-if = ["win11_2009 && bits == 32"] # No fast video path for h264 decoder (done in RDD, can't be read in content)
|
||||
|
||||
["test_video_fastpath_theora.html"]
|
||||
skip-if = [
|
||||
"os == 'linux' && os_version == '18.04'",
|
||||
"apple_catalina",
|
||||
"apple_silicon",
|
||||
"win11_2009 && bits == 32", # No fast video path for theora decoder (done in RDD, can't be read in content)
|
||||
]
|
||||
|
||||
["test_video_fastpath_vp8.html"]
|
||||
skip-if = [
|
||||
"os == 'linux' && os_version == '18.04'",
|
||||
"apple_catalina",
|
||||
"apple_silicon",
|
||||
"win11_2009 && bits == 32", # No fast video path for vp8 decoder (done in RDD, can't be read in content)
|
||||
"win11_2009 && bits == 32", # No fast video path for theora decoder (done in RDD, can't be read in content)
|
||||
]
|
||||
|
||||
["test_video_fastpath_vp9.html"]
|
||||
|
|
@ -211,7 +220,7 @@ skip-if = [
|
|||
"os == 'linux' && os_version == '18.04'",
|
||||
"apple_catalina",
|
||||
"apple_silicon",
|
||||
"win11_2009 && bits == 32", # No fast video path for vp9 decoder (done in RDD, can't be read in content)
|
||||
"win11_2009 && bits == 32", # No fast video path for theora decoder (done in RDD, can't be read in content)
|
||||
]
|
||||
|
||||
["test_webgl2_alpha_luminance.html"]
|
||||
|
|
|
|||
BIN
dom/canvas/test/webgl-mochitest/red-green.theora.ogv
Normal file
BIN
dom/canvas/test/webgl-mochitest/red-green.theora.ogv
Normal file
Binary file not shown.
|
|
@ -0,0 +1,21 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta name="timeout" content="long"/>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
|
||||
<title>Video Fastpath upload test</title>
|
||||
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script src="test_video_fastpath.js"></script>
|
||||
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
function runTest() {
|
||||
startTest("red-green.theora.ogv");
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SpecialPowers.pushPrefEnv({"set" : [["webgl.enable-privileged-extensions", true]]}, runTest);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -28,7 +28,7 @@ var observe = function(doc){
|
|||
|
||||
var media = document.getElementById('media');
|
||||
var tests = [
|
||||
"../../../media/test/vp9.webm",
|
||||
"../../../media/test/short-video.ogv",
|
||||
"../../../media/test/sound.ogg",
|
||||
"../../content/test/image.png"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -2331,16 +2331,16 @@ class MediaDecoderStateMachine::NextFrameSeekingState
|
|||
}
|
||||
|
||||
// Otherwise, we need to do the seek operation asynchronously for a special
|
||||
// case (video with no data)which has no data at all, the 1st
|
||||
// seekToNextFrame() operation reaches the end of the media. If we did the
|
||||
// seek operation synchronously, we immediately resolve the SeekPromise in
|
||||
// mSeekJob and then switch to the CompletedState which dispatches an
|
||||
// "ended" event. However, the ThenValue of the SeekPromise has not yet been
|
||||
// set, so the promise resolving is postponed and then the JS developer
|
||||
// receives the "ended" event before the seek promise is resolved. An
|
||||
// asynchronous seek operation helps to solve this issue since while the
|
||||
// seek is actually performed, the ThenValue of SeekPromise has already been
|
||||
// set so that it won't be postponed.
|
||||
// case (bug504613.ogv) which has no data at all, the 1st seekToNextFrame()
|
||||
// operation reaches the end of the media. If we did the seek operation
|
||||
// synchronously, we immediately resolve the SeekPromise in mSeekJob and
|
||||
// then switch to the CompletedState which dispatches an "ended" event.
|
||||
// However, the ThenValue of the SeekPromise has not yet been set, so the
|
||||
// promise resolving is postponed and then the JS developer receives the
|
||||
// "ended" event before the seek promise is resolved.
|
||||
// An asynchronous seek operation helps to solve this issue since while the
|
||||
// seek is actually performed, the ThenValue of SeekPromise has already
|
||||
// been set so that it won't be postponed.
|
||||
RefPtr<Runnable> r = mAsyncSeekTask = new AysncNextFrameSeekTask(this);
|
||||
nsresult rv = OwnerThread()->Dispatch(r.forget());
|
||||
MOZ_DIAGNOSTIC_ASSERT(NS_SUCCEEDED(rv));
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ subsuite = "media"
|
|||
tags = "autoplay"
|
||||
support-files = [
|
||||
"../../../test/manifest.js",
|
||||
"../../../test/320x240.ogv",
|
||||
"../../../test/bogus.duh",
|
||||
"../../../test/detodos-short.opus",
|
||||
"../../../test/flac-s24.flac",
|
||||
|
|
@ -22,7 +23,6 @@ support-files = [
|
|||
"../../../test/small-shot-mp3.mp4",
|
||||
"../../../test/small-shot.ogg",
|
||||
"../../../test/vp9-short.webm",
|
||||
"../../../test/vp9.webm",
|
||||
"AutoplayTestUtils.js",
|
||||
"file_autoplay_gv_play_request_frame.html",
|
||||
"file_autoplay_gv_play_request_window.html",
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@
|
|||
|
||||
let testCases = [
|
||||
{
|
||||
resource: "vp9.webm", // Only video track.
|
||||
resource: "320x240.ogv", // Only video track.
|
||||
shouldPlay: false,
|
||||
muted: false,
|
||||
},
|
||||
{
|
||||
resource: "vp9.webm", // Only video track.
|
||||
resource: "320x240.ogv", // Only video track.
|
||||
shouldPlay: true,
|
||||
muted: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ support-files = [
|
|||
"file_non_eligible_media.html",
|
||||
"file_non_looping_media.html",
|
||||
"head.js",
|
||||
"../../../test/bogus.ogv",
|
||||
"../../../test/gizmo.mp4",
|
||||
"../../../test/gizmo-noaudio.webm",
|
||||
"../../../test/gizmo-short.mp4",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@
|
|||
<title>Error media</title>
|
||||
</head>
|
||||
<body>
|
||||
<video id="video" src="bogus.webm"></video>
|
||||
<video id="video" src="bogus.ogv"></video>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -24,10 +24,7 @@ bool OggDecoder::IsSupportedType(const MediaContainerType& aContainerType) {
|
|||
return false;
|
||||
}
|
||||
|
||||
const bool isOggVideo = (aContainerType.Type() == MEDIAMIMETYPE(VIDEO_OGG));
|
||||
if (isOggVideo && !StaticPrefs::media_theora_enabled()) {
|
||||
return false;
|
||||
}
|
||||
const bool isOggVideo = (aContainerType.Type() != MEDIAMIMETYPE(AUDIO_OGG));
|
||||
|
||||
const MediaCodecs& codecs = aContainerType.ExtendedType().Codecs();
|
||||
if (codecs.IsEmpty()) {
|
||||
|
|
@ -43,9 +40,8 @@ bool OggDecoder::IsSupportedType(const MediaContainerType& aContainerType) {
|
|||
}
|
||||
// Note: Only accept Theora in a video container type, not in an audio
|
||||
// container type.
|
||||
if (aContainerType.Type() != MEDIAMIMETYPE(AUDIO_OGG) &&
|
||||
codec.EqualsLiteral("theora")) {
|
||||
return StaticPrefs::media_theora_enabled();
|
||||
if (isOggVideo && codec.EqualsLiteral("theora")) {
|
||||
continue;
|
||||
}
|
||||
// Some unsupported codec.
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -36,9 +36,8 @@ static bool IsAvailableInDefault(DecoderType type) {
|
|||
case DecoderType::AV1:
|
||||
return StaticPrefs::media_av1_enabled();
|
||||
#endif
|
||||
case DecoderType::Theora:
|
||||
return StaticPrefs::media_theora_enabled();
|
||||
case DecoderType::Opus:
|
||||
case DecoderType::Theora:
|
||||
case DecoderType::Vorbis:
|
||||
case DecoderType::VPX:
|
||||
case DecoderType::Wave:
|
||||
|
|
@ -57,8 +56,7 @@ static bool IsAvailableInRdd(DecoderType type) {
|
|||
case DecoderType::Opus:
|
||||
return StaticPrefs::media_rdd_opus_enabled();
|
||||
case DecoderType::Theora:
|
||||
return StaticPrefs::media_rdd_theora_enabled() &&
|
||||
StaticPrefs::media_theora_enabled();
|
||||
return StaticPrefs::media_rdd_theora_enabled();
|
||||
case DecoderType::Vorbis:
|
||||
#if defined(__MINGW32__)
|
||||
// If this is a MinGW build we need to force AgnosticDecoderModule to
|
||||
|
|
@ -131,8 +129,7 @@ media::DecodeSupportSet AgnosticDecoderModule::Supports(
|
|||
(AOMDecoder::IsAV1(mimeType) && IsAvailable(DecoderType::AV1)) ||
|
||||
#endif
|
||||
(VPXDecoder::IsVPX(mimeType) && IsAvailable(DecoderType::VPX)) ||
|
||||
(TheoraDecoder::IsTheora(mimeType) && IsAvailable(DecoderType::Theora) &&
|
||||
StaticPrefs::media_theora_enabled());
|
||||
(TheoraDecoder::IsTheora(mimeType) && IsAvailable(DecoderType::Theora));
|
||||
MOZ_LOG(sPDMLog, LogLevel::Debug,
|
||||
("Agnostic decoder %s requested type '%s'",
|
||||
supports ? "supports" : "rejects", mimeType.BeginReading()));
|
||||
|
|
@ -167,8 +164,7 @@ already_AddRefed<MediaDataDecoder> AgnosticDecoderModule::CreateVideoDecoder(
|
|||
}
|
||||
}
|
||||
#endif
|
||||
else if (TheoraDecoder::IsTheora(aParams.mConfig.mMimeType) &&
|
||||
StaticPrefs::media_theora_enabled()) {
|
||||
else if (TheoraDecoder::IsTheora(aParams.mConfig.mMimeType)) {
|
||||
m = new TheoraDecoder(aParams);
|
||||
}
|
||||
|
||||
|
|
|
|||
BIN
dom/media/test/320x240.ogv
Normal file
BIN
dom/media/test/320x240.ogv
Normal file
Binary file not shown.
Binary file not shown.
BIN
dom/media/test/448636.ogv
Normal file
BIN
dom/media/test/448636.ogv
Normal file
Binary file not shown.
45
dom/media/test/bogus.ogv
Normal file
45
dom/media/test/bogus.ogv
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
bogus bogus bogus
|
||||
BIN
dom/media/test/bug482461-theora.ogv
Normal file
BIN
dom/media/test/bug482461-theora.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug482461.ogv
Normal file
BIN
dom/media/test/bug482461.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug495129.ogv
Normal file
BIN
dom/media/test/bug495129.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug498380.ogv
Normal file
BIN
dom/media/test/bug498380.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug498855-1.ogv
Normal file
BIN
dom/media/test/bug498855-1.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug498855-2.ogv
Normal file
BIN
dom/media/test/bug498855-2.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug498855-3.ogv
Normal file
BIN
dom/media/test/bug498855-3.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug499519.ogv
Normal file
BIN
dom/media/test/bug499519.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug500311.ogv
Normal file
BIN
dom/media/test/bug500311.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug504613.ogv
Normal file
BIN
dom/media/test/bug504613.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug504644.ogv
Normal file
BIN
dom/media/test/bug504644.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug504843.ogv
Normal file
BIN
dom/media/test/bug504843.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug506094.ogv
Normal file
BIN
dom/media/test/bug506094.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug516323.indexed.ogv
Normal file
BIN
dom/media/test/bug516323.indexed.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug516323.ogv
Normal file
BIN
dom/media/test/bug516323.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug523816.ogv
Normal file
BIN
dom/media/test/bug523816.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug556821.ogv
Normal file
BIN
dom/media/test/bug556821.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/bug557094.ogv
Normal file
BIN
dom/media/test/bug557094.ogv
Normal file
Binary file not shown.
|
|
@ -5,23 +5,18 @@ function check_ogg(v, enabled, finish) {
|
|||
|
||||
function basic_test() {
|
||||
return new Promise(function (resolve) {
|
||||
if (SpecialPowers.getBoolPref("media.theora.enabled")) {
|
||||
// Ogg types
|
||||
check("video/ogg", "maybe");
|
||||
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");
|
||||
} 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");
|
||||
|
||||
check("audio/ogg; codecs=vorbis", "probably");
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
BIN
dom/media/test/chained-video.ogv
Normal file
BIN
dom/media/test/chained-video.ogv
Normal file
Binary file not shown.
15
dom/media/test/crashtests/576612-1.html
Normal file
15
dom/media/test/crashtests/576612-1.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script>
|
||||
function boom()
|
||||
{
|
||||
|
||||
var v = document.getElementById("v");
|
||||
v.src = "data:text/plain,_";
|
||||
document.documentElement.appendChild(v);
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="boom();"><video id="v" src="data:video/ogg;codecs="theora,vorbis",1"></video></body>
|
||||
</html>
|
||||
|
|
@ -8,9 +8,9 @@
|
|||
# requests is not interferred with by Necko's cache. See bug 977398
|
||||
# for details. Necko will fix this in bug 977314.
|
||||
|
||||
FILES=(`ls *.ogg *.webm *.mp3 *.opus *.mp4 *.m4s *.wav`)
|
||||
FILES=(`ls *.ogg *.ogv *.webm *.mp3 *.opus *.mp4 *.m4s *.wav`)
|
||||
|
||||
rm -f *.ogg^headers^ *.webm^headers^ *.mp3^headers^ *.opus^headers^ *.mp4^headers^ *.m4s^headers^ *.wav^headers^
|
||||
rm -f *.ogg^headers^ *.ogv^headers^ *.webm^headers^ *.mp3^headers^ *.opus^headers^ *.mp4^headers^ *.m4s^headers^ *.wav^headers^
|
||||
|
||||
for i in "${FILES[@]}"
|
||||
do
|
||||
|
|
|
|||
|
|
@ -51,6 +51,14 @@ var gSmallTests = [
|
|||
{ name: "small-shot-mp3.mp4", type: "audio/mp4; codecs=mp3", duration: 0.34 },
|
||||
{ name: "small-shot.flac", type: "audio/flac", duration: 0.197 },
|
||||
{ name: "r11025_s16_c1-short.wav", type: "audio/x-wav", duration: 0.37 },
|
||||
{
|
||||
name: "320x240.ogv",
|
||||
type: "video/ogg",
|
||||
width: 320,
|
||||
height: 240,
|
||||
duration: 0.266,
|
||||
contentDuration: 0.133,
|
||||
},
|
||||
{
|
||||
name: "seek-short.webm",
|
||||
type: "video/webm",
|
||||
|
|
@ -86,6 +94,7 @@ var gFrameCountTests = [
|
|||
{ name: "gizmo.mp4", type: "video/mp4", totalFrameCount: 166 },
|
||||
{ name: "seek-short.webm", type: "video/webm", totalFrameCount: 8 },
|
||||
{ name: "seek.webm", type: "video/webm", totalFrameCount: 120 },
|
||||
{ name: "320x240.ogv", type: "video/ogg", totalFrameCount: 8 },
|
||||
{ name: "av1.mp4", type: "video/mp4", totalFrameCount: 24 },
|
||||
];
|
||||
|
||||
|
|
@ -96,6 +105,13 @@ gSmallTests = gSmallTests.concat([
|
|||
|
||||
// Used by test_bug654550.html, for videoStats preference
|
||||
var gVideoTests = [
|
||||
{
|
||||
name: "320x240.ogv",
|
||||
type: "video/ogg",
|
||||
width: 320,
|
||||
height: 240,
|
||||
duration: 0.266,
|
||||
},
|
||||
{
|
||||
name: "seek-short.webm",
|
||||
type: "video/webm",
|
||||
|
|
@ -129,6 +145,15 @@ var gLongerTests = [
|
|||
var gProgressTests = [
|
||||
{ name: "r11025_u8_c1.wav", type: "audio/x-wav", duration: 1.0, size: 11069 },
|
||||
{ name: "big-short.wav", type: "audio/x-wav", duration: 1.11, size: 12366 },
|
||||
{ name: "seek-short.ogv", type: "video/ogg", duration: 1.03, size: 79921 },
|
||||
{
|
||||
name: "320x240.ogv",
|
||||
type: "video/ogg",
|
||||
width: 320,
|
||||
height: 240,
|
||||
duration: 0.266,
|
||||
size: 28942,
|
||||
},
|
||||
{ name: "seek-short.webm", type: "video/webm", duration: 0.23, size: 19267 },
|
||||
{ name: "gizmo-short.mp4", type: "video/mp4", duration: 0.27, size: 29905 },
|
||||
{ name: "bogus.duh", type: "bogus/duh" },
|
||||
|
|
@ -137,6 +162,7 @@ var gProgressTests = [
|
|||
// Used by test_played.html
|
||||
var gPlayedTests = [
|
||||
{ name: "big-short.wav", type: "audio/x-wav", duration: 1.11 },
|
||||
{ name: "seek-short.ogv", type: "video/ogg", duration: 1.03 },
|
||||
{ name: "seek-short.webm", type: "video/webm", duration: 0.23 },
|
||||
{ name: "gizmo-short.mp4", type: "video/mp4", duration: 0.27 },
|
||||
{ name: "owl-short.mp3", type: "audio/mpeg", duration: 0.52 },
|
||||
|
|
@ -161,14 +187,14 @@ if (
|
|||
// anything for testing clone-specific bugs.
|
||||
var cloneKey = Math.floor(Math.random() * 100000000);
|
||||
var gCloneTests = [
|
||||
// vp9.webm is more like 4s, so if you load this twice you'll get an unexpected duration
|
||||
// short-video is more like 1s, so if you load this twice you'll get an unexpected duration
|
||||
{
|
||||
name:
|
||||
"dynamic_resource.sjs?key=" +
|
||||
cloneKey +
|
||||
"&res1=seek-short.webm&res2=vp9.webm",
|
||||
type: "video/webm",
|
||||
duration: 0.23,
|
||||
"&res1=320x240.ogv&res2=short-video.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 0.266,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
@ -196,6 +222,23 @@ var gTrackTests = [
|
|||
hasAudio: true,
|
||||
hasVideo: false,
|
||||
},
|
||||
{
|
||||
name: "320x240.ogv",
|
||||
type: "video/ogg",
|
||||
width: 320,
|
||||
height: 240,
|
||||
duration: 0.266,
|
||||
size: 28942,
|
||||
hasAudio: false,
|
||||
hasVideo: true,
|
||||
},
|
||||
{
|
||||
name: "short-video.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 1.081,
|
||||
hasAudio: true,
|
||||
hasVideo: true,
|
||||
},
|
||||
{
|
||||
name: "seek-short.webm",
|
||||
type: "video/webm",
|
||||
|
|
@ -214,6 +257,10 @@ var gTrackTests = [
|
|||
{ name: "bogus.duh", type: "bogus/duh" },
|
||||
];
|
||||
|
||||
var gClosingConnectionsTest = [
|
||||
{ name: "seek-short.ogv", type: "video/ogg", duration: 1.03 },
|
||||
];
|
||||
|
||||
// Used by any media recorder test. Need one test file per decoder backend
|
||||
// currently supported by the media encoder.
|
||||
var gMediaRecorderTests = [
|
||||
|
|
@ -271,6 +318,36 @@ var gPlayTests = [
|
|||
// Data length 0xFFFFFFFF and odd chunk lengths.
|
||||
{ name: "bug1301226-odd.wav", type: "audio/x-wav", duration: 0.003673 },
|
||||
|
||||
// Ogg stream without eof marker
|
||||
{ name: "bug461281.ogg", type: "application/ogg", duration: 2.208 },
|
||||
|
||||
// oggz-chop stream
|
||||
{ name: "bug482461.ogv", type: "video/ogg", duration: 4.34 },
|
||||
// Theora only oggz-chop stream
|
||||
{ name: "bug482461-theora.ogv", type: "video/ogg", duration: 4.138 },
|
||||
// With first frame a "duplicate" (empty) frame.
|
||||
{
|
||||
name: "bug500311.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 1.96,
|
||||
contentDuration: 1.958,
|
||||
},
|
||||
// Small audio file
|
||||
{ name: "small-shot.ogg", type: "audio/ogg", duration: 0.276 },
|
||||
// More audio in file than video.
|
||||
{ name: "short-video.ogv", type: "video/ogg", duration: 1.081 },
|
||||
// First Theora data packet is zero bytes.
|
||||
{ name: "bug504613.ogv", type: "video/ogg", duration: Number.NaN },
|
||||
// Multiple audio streams.
|
||||
{ name: "bug516323.ogv", type: "video/ogg", duration: 4.208 },
|
||||
// oggz-chop with non-keyframe as first frame
|
||||
{
|
||||
name: "bug556821.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 2.936,
|
||||
contentDuration: 2.903,
|
||||
},
|
||||
|
||||
// Encoded with vorbis beta1, includes unusually sized codebooks
|
||||
{ name: "beta-phrasebook.ogg", type: "audio/ogg", duration: 4.01 },
|
||||
// Small file, only 1 frame with audio only.
|
||||
|
|
@ -278,7 +355,45 @@ var gPlayTests = [
|
|||
// Small file with vorbis comments with 0 length values and names.
|
||||
{ name: "bug520500.ogg", type: "audio/ogg", duration: 0.123 },
|
||||
|
||||
// Various weirdly formed Ogg files
|
||||
{
|
||||
name: "bug499519.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 0.24,
|
||||
contentDuration: 0.22,
|
||||
},
|
||||
{ name: "bug506094.ogv", type: "video/ogg", duration: 0 },
|
||||
{ name: "bug498855-1.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{ name: "bug498855-2.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{ name: "bug498855-3.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{
|
||||
name: "bug504644.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 1.6,
|
||||
contentDuration: 1.52,
|
||||
},
|
||||
{
|
||||
name: "chain.ogv",
|
||||
type: "video/ogg",
|
||||
duration: Number.NaN,
|
||||
contentDuration: 0.266,
|
||||
},
|
||||
{
|
||||
name: "bug523816.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 0.766,
|
||||
contentDuration: 0,
|
||||
},
|
||||
{ name: "bug495129.ogv", type: "video/ogg", duration: 2.41 },
|
||||
{
|
||||
name: "bug498380.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 0.7663,
|
||||
contentDuration: 0,
|
||||
},
|
||||
{ name: "bug495794.ogg", type: "audio/ogg", duration: 0.3 },
|
||||
{ name: "bug557094.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{ name: "multiple-bos.ogg", type: "video/ogg", duration: 0.431 },
|
||||
{ name: "audio-overhang.ogg", type: "video/ogg", duration: 2.3 },
|
||||
{ name: "video-overhang.ogg", type: "video/ogg", duration: 3.966 },
|
||||
|
||||
|
|
@ -287,8 +402,9 @@ var gPlayTests = [
|
|||
|
||||
// Test playback/metadata work after a redirect
|
||||
{
|
||||
name: "redirect.sjs?domain=mochi.test:8888&file=vp9.webm",
|
||||
type: "video/webm",
|
||||
name: "redirect.sjs?domain=mochi.test:8888&file=320x240.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 0.266,
|
||||
},
|
||||
|
||||
// Test playback of a webm file
|
||||
|
|
@ -443,6 +559,14 @@ var gPlayTests = [
|
|||
duration: 4.95,
|
||||
contentDuration: 5.03,
|
||||
},
|
||||
// Ogg with theora video and flac audio.
|
||||
{
|
||||
name: "A4.ogv",
|
||||
type: "video/ogg",
|
||||
width: 320,
|
||||
height: 240,
|
||||
duration: 3.13,
|
||||
},
|
||||
// A file that has no codec delay at the container level, but has a delay at
|
||||
// the codec level.
|
||||
{
|
||||
|
|
@ -527,11 +651,37 @@ var gSeekToNextFrameTests = [
|
|||
// Test playback of a WebM file with vp9 video
|
||||
{ name: "vp9-short.webm", type: "video/webm", duration: 0.2 },
|
||||
{ name: "vp9cake-short.webm", type: "video/webm", duration: 1.0 },
|
||||
// oggz-chop stream
|
||||
{ name: "bug482461.ogv", type: "video/ogg", duration: 4.34 },
|
||||
// Theora only oggz-chop stream
|
||||
{ name: "bug482461-theora.ogv", type: "video/ogg", duration: 4.138 },
|
||||
// With first frame a "duplicate" (empty) frame.
|
||||
{ name: "bug500311.ogv", type: "video/ogg", duration: 1.96 },
|
||||
|
||||
// More audio in file than video.
|
||||
{ name: "short-video.ogv", type: "video/ogg", duration: 1.081 },
|
||||
// First Theora data packet is zero bytes.
|
||||
{ name: "bug504613.ogv", type: "video/ogg", duration: Number.NaN },
|
||||
// Multiple audio streams.
|
||||
{ name: "bug516323.ogv", type: "video/ogg", duration: 4.208 },
|
||||
// oggz-chop with non-keyframe as first frame
|
||||
{ name: "bug556821.ogv", type: "video/ogg", duration: 2.936 },
|
||||
// Various weirdly formed Ogg files
|
||||
{ name: "bug498855-1.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{ name: "bug498855-2.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{ name: "bug498855-3.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{ name: "bug504644.ogv", type: "video/ogg", duration: 1.6 },
|
||||
|
||||
{ name: "bug523816.ogv", type: "video/ogg", duration: 0.766 },
|
||||
|
||||
{ name: "bug498380.ogv", type: "video/ogg", duration: 0.2 },
|
||||
{ name: "bug557094.ogv", type: "video/ogg", duration: 0.24 },
|
||||
{ name: "multiple-bos.ogg", type: "video/ogg", duration: 0.431 },
|
||||
// Test playback/metadata work after a redirect
|
||||
{
|
||||
name: "redirect.sjs?domain=mochi.test:8888&file=vp9.webm",
|
||||
type: "video/webm",
|
||||
name: "redirect.sjs?domain=mochi.test:8888&file=320x240.ogv",
|
||||
type: "video/ogg",
|
||||
duration: 0.266,
|
||||
},
|
||||
// Test playback of a webm file
|
||||
{ name: "seek-short.webm", type: "video/webm", duration: 0.23 },
|
||||
|
|
@ -548,6 +698,14 @@ var gSeekToNextFrameTests = [
|
|||
// A file for each type we can support.
|
||||
var gSnifferTests = [
|
||||
{ name: "big.wav", type: "audio/x-wav", duration: 9.278982, size: 102444 },
|
||||
{
|
||||
name: "320x240.ogv",
|
||||
type: "video/ogg",
|
||||
width: 320,
|
||||
height: 240,
|
||||
duration: 0.233,
|
||||
size: 28942,
|
||||
},
|
||||
{ name: "seek.webm", type: "video/webm", duration: 3.966, size: 215529 },
|
||||
{ name: "gizmo.mp4", type: "video/mp4", duration: 5.56, size: 383631 },
|
||||
// A mp3 file with id3 tags.
|
||||
|
|
@ -585,20 +743,49 @@ var gInvalidPlayTests = [
|
|||
];
|
||||
|
||||
// Files to check different cases of ogg skeleton information.
|
||||
// sample-fisbone-skeleton4.ogv
|
||||
// - Skeleton v4, w/ Content-Type,Role,Name,Language,Title for both theora/vorbis
|
||||
// sample-fisbone-wrong-header.ogv
|
||||
// - Skeleton v4, wrong message field sequence for vorbis
|
||||
// multiple-bos-more-header-fields.ogg
|
||||
// - Skeleton v3, w/ Content-Type,Role,Name,Language,Title for both theora/vorbis
|
||||
// seek-short.ogv
|
||||
// - No skeleton, but theora
|
||||
// audio-gaps-short.ogg
|
||||
// - No skeleton, but vorbis
|
||||
var gMultitrackInfoOggPlayList = [
|
||||
{ name: "sample-fisbone-skeleton4.ogv", type: "video/ogg", duration: 1.0 },
|
||||
{ name: "sample-fisbone-wrong-header.ogv", type: "video/ogg", duration: 1.0 },
|
||||
{
|
||||
name: "multiple-bos-more-header-fileds.ogg",
|
||||
type: "video/ogg",
|
||||
duration: 0.431,
|
||||
},
|
||||
{ name: "seek-short.ogv", type: "video/ogg", duration: 1.03 },
|
||||
{ name: "audio-gaps-short.ogg", type: "audio/ogg", duration: 0.5 },
|
||||
];
|
||||
// Pre-parsed results of gMultitrackInfoOggPlayList.
|
||||
var gOggTrackInfoResults = {
|
||||
"sample-fisbone-skeleton4.ogv": {
|
||||
audio_id: " audio_1",
|
||||
audio_kind: "main",
|
||||
audio_language: " en-US",
|
||||
audio_label: " Audio track for test",
|
||||
video_id: " video_1",
|
||||
video_kind: "main",
|
||||
video_language: " fr",
|
||||
video_label: " Video track for test",
|
||||
},
|
||||
"sample-fisbone-wrong-header.ogv": {
|
||||
audio_id: "1",
|
||||
audio_kind: "main",
|
||||
audio_language: "",
|
||||
audio_label: "",
|
||||
video_id: " video_1",
|
||||
video_kind: "main",
|
||||
video_language: " fr",
|
||||
video_label: " Video track for test",
|
||||
},
|
||||
"multiple-bos-more-header-fileds.ogg": {
|
||||
audio_id: "1",
|
||||
audio_kind: "main",
|
||||
|
|
@ -609,6 +796,12 @@ var gOggTrackInfoResults = {
|
|||
video_language: "",
|
||||
video_label: "",
|
||||
},
|
||||
"seek-short.ogv": {
|
||||
video_id: "2",
|
||||
video_kind: "main",
|
||||
video_language: "",
|
||||
video_label: "",
|
||||
},
|
||||
"audio-gaps-short.ogg": {
|
||||
audio_id: "1",
|
||||
audio_kind: "main",
|
||||
|
|
@ -671,6 +864,14 @@ function range_equals(r1, r2) {
|
|||
// environment. Used by test_info_leak.
|
||||
function makeInfoLeakTests() {
|
||||
return makeAbsolutePathConverter().then(fileUriToSrc => [
|
||||
{
|
||||
type: "video/ogg",
|
||||
src: fileUriToSrc("tests/dom/media/test/320x240.ogv", true),
|
||||
},
|
||||
{
|
||||
type: "video/ogg",
|
||||
src: fileUriToSrc("tests/dom/media/test/404.ogv", false),
|
||||
},
|
||||
{
|
||||
type: "audio/x-wav",
|
||||
src: fileUriToSrc("tests/dom/media/test/r11025_s16_c1.wav", true),
|
||||
|
|
@ -679,6 +880,10 @@ function makeInfoLeakTests() {
|
|||
type: "audio/x-wav",
|
||||
src: fileUriToSrc("tests/dom/media/test/404.wav", false),
|
||||
},
|
||||
{
|
||||
type: "audio/ogg",
|
||||
src: fileUriToSrc("tests/dom/media/test/bug461281.ogg", true),
|
||||
},
|
||||
{
|
||||
type: "audio/ogg",
|
||||
src: fileUriToSrc("tests/dom/media/test/404.ogg", false),
|
||||
|
|
@ -691,6 +896,10 @@ function makeInfoLeakTests() {
|
|||
type: "video/webm",
|
||||
src: fileUriToSrc("tests/dom/media/test/404.webm", false),
|
||||
},
|
||||
{
|
||||
type: "video/ogg",
|
||||
src: "http://localhost/404.ogv",
|
||||
},
|
||||
{
|
||||
type: "audio/x-wav",
|
||||
src: "http://localhost/404.wav",
|
||||
|
|
@ -716,6 +925,9 @@ function makeInfoLeakTests() {
|
|||
// something crashes we have some idea of which backend is responsible.
|
||||
var gErrorTests = [
|
||||
{ name: "bogus.wav", type: "audio/x-wav" },
|
||||
{ name: "bogus.ogv", type: "video/ogg" },
|
||||
{ name: "448636.ogv", type: "video/ogg" },
|
||||
{ name: "bug504843.ogv", type: "video/ogg" },
|
||||
{ name: "bug501279.ogg", type: "audio/ogg" },
|
||||
{ name: "bug604067.webm", type: "video/webm" },
|
||||
{ name: "bug1535980.webm", type: "video/webm" },
|
||||
|
|
@ -731,8 +943,11 @@ var gDurationTests = [{ name: "bug604067.webm", duration: 6.076 }];
|
|||
var gSeekTests = [
|
||||
{ name: "r11025_s16_c1.wav", type: "audio/x-wav", duration: 1.0 },
|
||||
{ name: "audio.wav", type: "audio/x-wav", duration: 0.031247 },
|
||||
{ name: "seek.ogv", type: "video/ogg", duration: 3.966 },
|
||||
{ name: "320x240.ogv", type: "video/ogg", duration: 0.266 },
|
||||
{ name: "seek.webm", type: "video/webm", duration: 3.966 },
|
||||
{ name: "sine.webm", type: "audio/webm", duration: 4.001 },
|
||||
{ name: "bug516323.indexed.ogv", type: "video/ogg", duration: 4.208333 },
|
||||
{ name: "split.webm", type: "video/webm", duration: 1.967 },
|
||||
{ name: "detodos.opus", type: "audio/ogg; codecs=opus", duration: 2.9135 },
|
||||
{ name: "gizmo.mp4", type: "video/mp4", duration: 5.56 },
|
||||
|
|
@ -743,6 +958,9 @@ var gSeekTests = [
|
|||
},
|
||||
{ name: "owl.mp3", type: "audio/mpeg", duration: 3.343 },
|
||||
{ name: "bogus.duh", type: "bogus/duh", duration: 123 },
|
||||
|
||||
// Bug 1242338: hit a numerical problem while seeking to the duration.
|
||||
{ name: "bug482461-theora.ogv", type: "video/ogg", duration: 4.138 },
|
||||
];
|
||||
|
||||
var gFastSeekTests = [
|
||||
|
|
@ -753,6 +971,14 @@ var gFastSeekTests = [
|
|||
},
|
||||
// Note: Not all keyframes in the file are actually referenced in the Cues in this file.
|
||||
{ name: "seek.webm", type: "video/webm", keyframes: [0, 0.8, 1.6, 2.4, 3.2] },
|
||||
// Note: the sync points are the points on both the audio and video streams
|
||||
// before the keyframes. You can't just assume that the keyframes are the sync
|
||||
// points, as the audio required for that sync point may be before the keyframe.
|
||||
{
|
||||
name: "bug516323.indexed.ogv",
|
||||
type: "video/ogg",
|
||||
keyframes: [0, 0.46, 3.06],
|
||||
},
|
||||
];
|
||||
|
||||
// These files are WebMs without cues. They're seekable within their buffered
|
||||
|
|
@ -793,6 +1019,7 @@ var gAudioTests = [
|
|||
// various backends.
|
||||
var g404Tests = [
|
||||
{ name: "404.wav", type: "audio/x-wav" },
|
||||
{ name: "404.ogv", type: "video/ogg" },
|
||||
{ name: "404.oga", type: "audio/ogg" },
|
||||
{ name: "404.webm", type: "video/webm" },
|
||||
{ name: "bogus.duh", type: "bogus/duh" },
|
||||
|
|
@ -807,6 +1034,7 @@ var gDecodeErrorTests = [
|
|||
{ name: "dirac.ogg", type: "video/ogg" },
|
||||
// Invalid files
|
||||
{ name: "bogus.wav", type: "audio/x-wav" },
|
||||
{ name: "bogus.ogv", type: "video/ogg" },
|
||||
|
||||
{ name: "bogus.duh", type: "bogus/duh" },
|
||||
];
|
||||
|
|
@ -834,6 +1062,12 @@ var gChainingTests = [
|
|||
// original sample rate, so we can safely play Opus chained media that have
|
||||
// different samplerate accross links.
|
||||
{ name: "variable-samplerate.opus", type: "audio/ogg; codec=opus", links: 2 },
|
||||
// A chained video file. We don't support those, so only one link should be
|
||||
// reported.
|
||||
{ name: "chained-video.ogv", type: "video/ogg", links: 1 },
|
||||
// A file that consist in 4 links of audio, then another link that has video.
|
||||
// We should stop right after the 4 audio links.
|
||||
{ name: "chained-audio-video.ogg", type: "video/ogg", links: 4 },
|
||||
// An opus file that has two links, with a different preskip value for each
|
||||
// link. We should be able to play both links.
|
||||
{ name: "variable-preskip.opus", type: "audio/ogg; codec=opus", links: 2 },
|
||||
|
|
@ -851,6 +1085,36 @@ var gAspectRatioTests = [
|
|||
// Used by test_metadata.html.
|
||||
var gMetadataTests = [
|
||||
// Ogg Vorbis files
|
||||
{
|
||||
name: "short-video.ogv",
|
||||
tags: {
|
||||
TITLE: "Lepidoptera",
|
||||
ARTIST: "Epoq",
|
||||
ALBUM: "Kahvi Collective",
|
||||
DATE: "2002",
|
||||
COMMENT: "http://www.kahvi.org",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "bug516323.ogv",
|
||||
tags: {
|
||||
GENRE: "Open Movie",
|
||||
ENCODER: "Audacity",
|
||||
TITLE: "Elephants Dream",
|
||||
ARTIST: "Silvia Pfeiffer",
|
||||
COMMENTS: "Audio Description",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "bug516323.indexed.ogv",
|
||||
tags: {
|
||||
GENRE: "Open Movie",
|
||||
ENCODER: "Audacity",
|
||||
TITLE: "Elephants Dream",
|
||||
ARTIST: "Silvia Pfeiffer",
|
||||
COMMENTS: "Audio Description",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "detodos.opus",
|
||||
tags: {
|
||||
|
|
@ -1944,6 +2208,7 @@ var gDecodeSuspendTests = [
|
|||
// durations that are looped while we check telemetry for macOS video
|
||||
// low power mode.
|
||||
var gVideoLowPowerTests = [
|
||||
{ name: "seek.ogv", type: "video/ogg", duration: 3.966 },
|
||||
{ name: "gizmo.mp4", type: "video/mp4", duration: 5.56 },
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,12 @@ prefs = [
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.webm",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -405,19 +410,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -438,10 +487,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -522,6 +575,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -576,6 +631,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -588,6 +651,7 @@ support-files = [
|
|||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-cenc.mp4",
|
||||
"short-video.ogv",
|
||||
"short.mp4",
|
||||
"short.mp4.gz",
|
||||
"short.mp4^headers^",
|
||||
|
|
@ -614,6 +678,7 @@ support-files = [
|
|||
"sintel-short-clearkey-subsample-encrypted-audio.webm^headers^",
|
||||
"sintel-short-clearkey-subsample-encrypted-video.webm",
|
||||
"sintel-short-clearkey-subsample-encrypted-video.webm^headers^",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ tags = "suspend media-gpu"
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -400,19 +406,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -431,8 +481,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -512,6 +568,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -566,6 +624,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -587,6 +653,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ tags = "media-gpu"
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -400,19 +406,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -433,8 +483,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -514,6 +570,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -568,6 +626,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -589,6 +655,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,12 @@ prefs = ["media.wmf.hevc.enabled=1"] # for test_hevc_playback
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"adts.aac",
|
||||
|
|
@ -410,19 +416,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -441,8 +491,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -536,6 +592,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -590,6 +648,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -611,6 +677,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ skip-if = ["os == 'linux' && (asan || debug)"] # Bug 1476870: common fatal error
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -400,19 +406,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -431,8 +481,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -512,6 +568,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -566,6 +624,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -587,6 +653,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -28,6 +28,12 @@ skip-if = ["os == 'linux' && (asan || debug)"] # Bug 1476870: common fatal error
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -397,19 +403,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -428,8 +478,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -509,6 +565,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -563,6 +621,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -584,6 +650,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ tags = "mtg"
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -400,19 +406,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -431,10 +481,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -514,6 +568,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -568,6 +624,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -589,6 +653,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ tags = "media-gpu"
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -400,19 +406,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -431,8 +481,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -512,6 +568,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -566,6 +624,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -587,6 +653,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ tags = "mtg capturestream"
|
|||
support-files = [
|
||||
"16bit_wave_extrametadata.wav",
|
||||
"16bit_wave_extrametadata.wav^headers^",
|
||||
"320x240.ogv",
|
||||
"320x240.ogv^headers^",
|
||||
"448636.ogv",
|
||||
"448636.ogv^headers^",
|
||||
"A4.ogv",
|
||||
"A4.ogv^headers^",
|
||||
"VID_0001.ogg",
|
||||
"VID_0001.ogg^headers^",
|
||||
"allowed.sjs",
|
||||
|
|
@ -400,19 +406,63 @@ support-files = [
|
|||
"bipbop_short_vp8.webm^headers^",
|
||||
"bipbop-lateaudio.mp4",
|
||||
"bipbop-lateaudio.mp4^headers^",
|
||||
"black100x100-aspect3to2.ogv",
|
||||
"black100x100-aspect3to2.ogv^headers^",
|
||||
"bogus.duh",
|
||||
"bogus.ogv",
|
||||
"bogus.ogv^headers^",
|
||||
"bogus.wav",
|
||||
"bogus.wav^headers^",
|
||||
"bug461281.ogg",
|
||||
"bug461281.ogg^headers^",
|
||||
"bug482461-theora.ogv",
|
||||
"bug482461-theora.ogv^headers^",
|
||||
"bug482461.ogv",
|
||||
"bug482461.ogv^headers^",
|
||||
"bug495129.ogv",
|
||||
"bug495129.ogv^headers^",
|
||||
"bug495794.ogg",
|
||||
"bug495794.ogg^headers^",
|
||||
"bug498380.ogv",
|
||||
"bug498380.ogv^headers^",
|
||||
"bug498855-1.ogv",
|
||||
"bug498855-1.ogv^headers^",
|
||||
"bug498855-2.ogv",
|
||||
"bug498855-2.ogv^headers^",
|
||||
"bug498855-3.ogv",
|
||||
"bug498855-3.ogv^headers^",
|
||||
"bug499519.ogv",
|
||||
"bug499519.ogv^headers^",
|
||||
"bug500311.ogv",
|
||||
"bug500311.ogv^headers^",
|
||||
"bug501279.ogg",
|
||||
"bug501279.ogg^headers^",
|
||||
"bug504613.ogv",
|
||||
"bug504613.ogv^headers^",
|
||||
"bug504644.ogv",
|
||||
"bug504644.ogv^headers^",
|
||||
"bug504843.ogv",
|
||||
"bug504843.ogv^headers^",
|
||||
"bug506094.ogv",
|
||||
"bug506094.ogv^headers^",
|
||||
"bug516323.indexed.ogv",
|
||||
"bug516323.indexed.ogv^headers^",
|
||||
"bug516323.ogv",
|
||||
"bug516323.ogv^headers^",
|
||||
"bug520493.ogg",
|
||||
"bug520493.ogg^headers^",
|
||||
"bug520500.ogg",
|
||||
"bug520500.ogg^headers^",
|
||||
"bug520908.ogv",
|
||||
"bug520908.ogv^headers^",
|
||||
"bug523816.ogv",
|
||||
"bug523816.ogv^headers^",
|
||||
"bug533822.ogg",
|
||||
"bug533822.ogg^headers^",
|
||||
"bug556821.ogv",
|
||||
"bug556821.ogv^headers^",
|
||||
"bug557094.ogv",
|
||||
"bug557094.ogv^headers^",
|
||||
"bug604067.webm",
|
||||
"bug604067.webm^headers^",
|
||||
"bug1066943.webm",
|
||||
|
|
@ -431,8 +481,14 @@ support-files = [
|
|||
"cancellable_request.sjs",
|
||||
"chain.ogg",
|
||||
"chain.ogg^headers^",
|
||||
"chain.ogv",
|
||||
"chain.ogv^headers^",
|
||||
"chain.opus",
|
||||
"chain.opus^headers^",
|
||||
"chained-audio-video.ogg",
|
||||
"chained-audio-video.ogg^headers^",
|
||||
"chained-video.ogv",
|
||||
"chained-video.ogv^headers^",
|
||||
"chromeHelper.js",
|
||||
"cloneElementVisually_helpers.js",
|
||||
"contentType.sjs",
|
||||
|
|
@ -512,6 +568,8 @@ support-files = [
|
|||
"invalid-preskip.webm^headers^",
|
||||
"manifest.js",
|
||||
"midflight-redirect.sjs",
|
||||
"multiple-bos.ogg",
|
||||
"multiple-bos.ogg^headers^",
|
||||
"multiple-bos-more-header-fileds.ogg",
|
||||
"multiple-bos-more-header-fileds.ogg^headers^",
|
||||
"multi_id3v2.mp3",
|
||||
|
|
@ -566,6 +624,14 @@ support-files = [
|
|||
"sample.3g2",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4",
|
||||
"sample-encrypted-sgpdstbl-sbgptraf.mp4^headers^",
|
||||
"sample-fisbone-skeleton4.ogv",
|
||||
"sample-fisbone-skeleton4.ogv^headers^",
|
||||
"sample-fisbone-wrong-header.ogv",
|
||||
"sample-fisbone-wrong-header.ogv^headers^",
|
||||
"seek.ogv",
|
||||
"seek.ogv^headers^",
|
||||
"seek-short.ogv",
|
||||
"seek-short.ogv^headers^",
|
||||
"seek.webm",
|
||||
"seek.webm^headers^",
|
||||
"seek-short.webm",
|
||||
|
|
@ -587,6 +653,8 @@ support-files = [
|
|||
"short-aac-encrypted-audio.mp4^headers^",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4",
|
||||
"short-audio-fragmented-cenc-without-pssh.mp4^headers^",
|
||||
"short-video.ogv",
|
||||
"short-video.ogv^headers^",
|
||||
"short-vp9-encrypted-video.mp4",
|
||||
"short-vp9-encrypted-video.mp4^headers^",
|
||||
"small-shot-mp3.mp4",
|
||||
|
|
@ -695,15 +763,11 @@ support-files = [
|
|||
"hls/960x720_seg1.ts",
|
||||
"sync.webm",
|
||||
]
|
||||
# This test requires software decoding on Android to be able to check that
|
||||
# painting a video to the canvas throws. bug 1372457, bug 1526207
|
||||
prefs = [
|
||||
"media.android-media-codec.preferred=false",
|
||||
]
|
||||
|
||||
["test_streams_capture_origin.html"]
|
||||
|
||||
["test_streams_element_capture.html"]
|
||||
skip-if = ["os == 'android'"] # bug 1372457, bug 1526207 for drawImage
|
||||
|
||||
["test_streams_element_capture_mediatrack.html"]
|
||||
|
||||
|
|
@ -724,7 +788,9 @@ tags = "mtg"
|
|||
|
||||
["test_streams_srcObject.html"]
|
||||
skip-if = [
|
||||
"os == 'android'", # bug 1300443, android(bug 1232305)
|
||||
"os == 'mac' && debug", # Bug 1756880 - temp due to high frequency shutdown hang
|
||||
]
|
||||
|
||||
["test_streams_tracks.html"]
|
||||
skip-if = ["os == 'android'"] # android(bug 1232305)
|
||||
|
|
|
|||
BIN
dom/media/test/multiple-bos.ogg
Normal file
BIN
dom/media/test/multiple-bos.ogg
Normal file
Binary file not shown.
BIN
dom/media/test/sample-fisbone-skeleton4.ogv
Normal file
BIN
dom/media/test/sample-fisbone-skeleton4.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/sample-fisbone-wrong-header.ogv
Normal file
BIN
dom/media/test/sample-fisbone-wrong-header.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/seek-short.ogv
Normal file
BIN
dom/media/test/seek-short.ogv
Normal file
Binary file not shown.
BIN
dom/media/test/seek.ogv
Normal file
BIN
dom/media/test/seek.ogv
Normal file
Binary file not shown.
|
|
@ -6,7 +6,7 @@ function handleRequest(request, response) {
|
|||
var bis = Cc["@mozilla.org/binaryinputstream;1"].createInstance(
|
||||
Ci.nsIBinaryInputStream
|
||||
);
|
||||
var paths = "tests/dom/media/test/vp9.webm";
|
||||
var paths = "tests/dom/media/test/seek.ogv";
|
||||
var split = paths.split("/");
|
||||
for (var i = 0; i < split.length; ++i) {
|
||||
file.append(split[i]);
|
||||
|
|
@ -15,7 +15,7 @@ function handleRequest(request, response) {
|
|||
bis.setInputStream(fis);
|
||||
var bytes = bis.readBytes(bis.available());
|
||||
response.setHeader("Content-Length", "" + bytes.length, false);
|
||||
response.setHeader("Content-Type", "video/webm", false);
|
||||
response.setHeader("Content-Type", "video/ogg", false);
|
||||
response.setHeader("Accept-Ranges", "bytes", false);
|
||||
response.write(bytes, bytes.length);
|
||||
bis.close();
|
||||
|
|
|
|||
BIN
dom/media/test/short-video.ogv
Normal file
BIN
dom/media/test/short-video.ogv
Normal file
Binary file not shown.
|
|
@ -7,7 +7,7 @@
|
|||
<script type="text/javascript" src="manifest.js"></script>
|
||||
</head>
|
||||
<body onload="doTest()">
|
||||
<video id="v" src="vp9.webm"></video>
|
||||
<video id="v" src="black100x100-aspect3to2.ogv"></video>
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ window.onload = function() {
|
|||
we've got the first frame.
|
||||
*/
|
||||
|
||||
var resource = getPlayableVideo(gPlayTests);
|
||||
var resource = getPlayableVideo(gClosingConnectionsTest);
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
function beginTest() {
|
||||
|
|
|
|||
|
|
@ -66,10 +66,10 @@ function videoError(event, id) {
|
|||
</div>
|
||||
<script>
|
||||
function makeVideos() {
|
||||
document.getElementById('content').innerHTML = '<video id="video1" preload="metadata"><source type="video/webm" src="vp9.webm?decoder_disabled=1" onerror="videoError(event, \'video1\');"/><source type="audio/wave" src="r11025_u8_c1.wav?decoder_disabled=1" id=\'s2\' onerror="videoError(event, \'video1\');"/></video><video id="video2" preload="metadata" src="vp9.webm?decoder_disabled=2" onerror="videoError(event, \'video2\');"></video><video id="video3" preload="metadata" src="r11025_u8_c1.wav?decoder_disabled=2" onerror="videoError(event, \'video3\');"></video>';
|
||||
document.getElementById('content').innerHTML = '<video id="video1" preload="metadata"><source type="video/ogg" src="320x240.ogv?decoder_disabled=1" onerror="videoError(event, \'video1\');"/><source type="audio/wave" src="r11025_u8_c1.wav?decoder_disabled=1" id=\'s2\' onerror="videoError(event, \'video1\');"/></video><video id="video2" preload="metadata" src="320x240.ogv?decoder_disabled=2" onerror="videoError(event, \'video2\');"></video><video id="video3" preload="metadata" src="r11025_u8_c1.wav?decoder_disabled=2" onerror="videoError(event, \'video3\');"></video>';
|
||||
}
|
||||
|
||||
SpecialPowers.pushPrefEnv({"set": [["media.webm.enabled", false], ["media.wave.enabled", false]]}, makeVideos);
|
||||
SpecialPowers.pushPrefEnv({"set": [["media.ogg.enabled", false], ["media.wave.enabled", false]]}, makeVideos);
|
||||
</script>
|
||||
|
||||
</pre>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ function check() {
|
|||
|
||||
// Debug info for Bug 608634
|
||||
ok(true, "iframe src=" + document.body.getElementsByTagName("iframe")[0].src);
|
||||
is(v.readyState, v.HAVE_NOTHING, "Ready state for " + document.body.getElementsByTagName("iframe")[0].src);
|
||||
is(v.readyState, v.HAVE_NOTHING, "Ready state");
|
||||
|
||||
isnot(v.error, null, "Error object");
|
||||
is(v.networkState, v.NETWORK_NO_SOURCE, "Network state");
|
||||
|
|
@ -40,16 +40,15 @@ function check() {
|
|||
}
|
||||
|
||||
// Find an error test that we'd think we should be able to play (if it
|
||||
// wasn't already known to fail). This needs to fail early: for example,
|
||||
// incorrect metadata, not correct metadata but incorrect encoded packets.
|
||||
var t = "bug1535980.webm";
|
||||
// wasn't already known to fail).
|
||||
var t = getPlayableVideo(gErrorTests);
|
||||
if (!t) {
|
||||
todo(false, "No types supported");
|
||||
} else {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var f = document.createElement("iframe");
|
||||
f.src = t;
|
||||
f.src = t.name;
|
||||
f.addEventListener("load", check);
|
||||
document.body.appendChild(f);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ async function initTest(test, token) {
|
|||
e.token = token;
|
||||
manager.started(token);
|
||||
|
||||
// Since 320x240.webm is less than 32KB, we need to wait for the
|
||||
// Since 320x240.ogv is less than 32KB, we need to wait for the
|
||||
// 'suspend' event to ensure the partial block is flushed to the cache
|
||||
// otherwise the cloned resource will create a new channel when it
|
||||
// has no data to read at position 0. The new channel will download
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ for (var i = 0; i < gSmallTests.length; ++i) {
|
|||
checkMetadata(t.name, e, t);
|
||||
}}(test);
|
||||
|
||||
var otherType = type.match(/^video\//) ? "audio/x-wav" : "video/webm";
|
||||
var otherType = type.match(/^video\//) ? "audio/x-wav" : "video/ogg";
|
||||
subtests.push(maketest(set_src, src, null, check),
|
||||
maketest(add_source, src, null, check),
|
||||
maketest(add_source, src, type, check),
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function startTest(test) {
|
|||
var v = document.createElement("video");
|
||||
v.name = test.name;
|
||||
var key = Math.random();
|
||||
v.src = "vp9.webm?key=" + key + "&id=" + v.name;
|
||||
v.src = "seek.ogv?key=" + key + "&id=" + v.name;
|
||||
v.preload = test.preload;
|
||||
v.suspendCount = 0;
|
||||
v.expectedSuspendCount = test.expectedSuspendCount;
|
||||
|
|
|
|||
|
|
@ -109,11 +109,6 @@ async function startTest(test, token) {
|
|||
let tests = gPlayTests;
|
||||
// Filter out bug1377278.webm due to bug 1541401.
|
||||
tests = tests.filter(t => !t.name.includes("1377278"));
|
||||
// bug 1372457, bug 1526207 for drawImage -- restrict to codecs that can be
|
||||
// decoded in software.
|
||||
if (navigator.userAgent.includes("Android")) {
|
||||
tests = tests.filter(t => !t.name.includes("mp4"));
|
||||
}
|
||||
|
||||
manager.runTests(tests, async (test, token) => {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ async function startTest(src) {
|
|||
|
||||
(async function() {
|
||||
try {
|
||||
await startTest("vp9cake.webm");
|
||||
await startTest("short-video.ogv");
|
||||
} catch(e) {
|
||||
ok(false, `Caught error: ${e}${e.stack ? '\n' + e.stack : ''}`);
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=463830
|
|||
/** Test for Bug 463830 **/
|
||||
|
||||
var gTests = [
|
||||
{ file: "vp9.webm", title: "vp9.webm" },
|
||||
{ file: "vp9cake.webm", title: "vp9cake.webm" },
|
||||
{ file: "320x240.ogv", title: "320x240.ogv" },
|
||||
{ file: "bug461281.ogg", title: "bug461281.ogg" },
|
||||
];
|
||||
|
||||
var gTestNum = 0;
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ https://trac.torproject.org/projects/tor/ticket/15757
|
|||
["privacy.resistFingerprinting.target_video_res", 240]
|
||||
);
|
||||
var testCases = [
|
||||
{ name:"320x240.ogv", type:"video/ogg", width:320, height:240, duration:0.266, drop: false },
|
||||
{ name:"seek.webm", type:"video/webm", width:320, height:240, duration:3.966, drop: false },
|
||||
{ name:"gizmo.mp4", type:"video/mp4", width:560, height:320, duration:5.56, drop: true }
|
||||
];
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ support-files = [
|
|||
"audio-mono-expected-2.wav",
|
||||
"audio-mono-expected.wav",
|
||||
"audio-quad.wav",
|
||||
"audio.ogv",
|
||||
"audiovideo.mp4",
|
||||
"audioBufferSourceNodeDetached_worker.js",
|
||||
"corsServer.sjs",
|
||||
|
|
|
|||
|
|
@ -197,6 +197,18 @@
|
|||
{ url: "invalid.txt", valid: false, sampleRate: 44100 },
|
||||
// A webm file with no audio
|
||||
{ url: "noaudio.webm", valid: false, sampleRate: 48000 },
|
||||
// A video ogg file with audio
|
||||
{
|
||||
url: "audio.ogv",
|
||||
valid: true,
|
||||
expectedUrl: "audio-expected.wav",
|
||||
numberOfChannels: 2,
|
||||
sampleRate: 44100,
|
||||
frames: 47680,
|
||||
duration: 1.0807,
|
||||
fuzzTolerance: 106,
|
||||
fuzzToleranceMobile: 3482
|
||||
},
|
||||
{
|
||||
url: "nil-packet.ogg",
|
||||
expectedUrl: null,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ support-files = ["file_beforeunload_permit_http.html"]
|
|||
support-files = [
|
||||
"file_mixed_content_auto_upgrade.html",
|
||||
"pass.png",
|
||||
"test.webm",
|
||||
"test.ogv",
|
||||
"test.wav",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<body>
|
||||
<!--upgradeable resources--->
|
||||
<img src="http://example.com/browser/dom/security/test/https-first/pass.png">
|
||||
<video src="http://example.com/browser/dom/security/test/https-first/test.webm">
|
||||
<video src="http://example.com/browser/dom/security/test/https-first/test.ogv">
|
||||
<audio src="http://example.com/browser/dom/security/test/https-first/test.wav">
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue