Bug 1860492 - Stop using theora files in dom/security. r=freddyb

Switch to using a functionally equivalent videos using the VP9 codec in WebM
container.

Differential Revision: https://phabricator.services.mozilla.com/D204646
This commit is contained in:
Paul Adenot 2024-04-04 15:02:37 +00:00
parent eef3b34d99
commit 15948c0948
10 changed files with 9 additions and 7 deletions

View File

@ -7,7 +7,7 @@ support-files = ["file_beforeunload_permit_http.html"]
support-files = [
"file_mixed_content_auto_upgrade.html",
"pass.png",
"test.ogv",
"test.webm",
"test.wav",
]

View File

@ -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.ogv">
<video src="http://example.com/browser/dom/security/test/https-first/test.webm">
<audio src="http://example.com/browser/dom/security/test/https-first/test.wav">
</body>
</html>

Binary file not shown.

View File

@ -15,7 +15,7 @@ support-files = [
support-files = [
"file_csp_block_all_mixedcontent_and_mixed_content_display_upgrade.html",
"pass.png",
"test.ogv",
"test.webm",
"test.wav",
]

View File

@ -8,7 +8,7 @@
<body>
<!--upgradeable resources--->
<img id="some-img" src="http://test1.example.com/browser/dom/security/test/mixedcontentblocker/pass.png" width="100px">
<video id="some-video" src="http://test1.example.com/browser/dom/security/test/mixedcontentblocker/test.ogv" width="100px">
<video id="some-video" src="http://test1.example.com/browser/dom/security/test/mixedcontentblocker/test.webm" width="100px">
<audio id="some-audio" src="http://test1.example.com/browser/dom/security/test/mixedcontentblocker/test.wav" width="100px">
</body>
</html>

View File

@ -96,8 +96,8 @@ function handleRequest(request, response) {
break;
case "media":
response.setHeader("Content-Type", "video/ogg", false);
response.write(loadContentFromFile("tests/dom/media/test/320x240.ogv"));
response.setHeader("Content-Type", "video/webm", false);
response.write(loadContentFromFile("tests/dom/media/test/vp9.webm"));
break;
case "iframe":

View File

@ -16,7 +16,9 @@ support-files = [
"file_main_bug803225.html",
"file_main_bug803225_websocket_wsh.py",
"file_server.sjs",
"!/dom/media/test/320x240.ogv",
"!/dom/media/test/vp9.webm",
"test.webm",
"test.wav",
"!/image/test/mochitest/blue.png",
"file_redirect.html",
"file_redirect_handler.sjs",

Binary file not shown.