Fix videos on Firefox (#32497)

* Fix videos on Firefox

Videos are using cross-origin requests, and Firefox
blocks them before passing to the service worker if
the element doesn't have the crossorigin attribute to
give CORS support

* React needs camelCase attr names

---------

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
S1m
2026-02-13 12:44:11 +00:00
committed by GitHub
co-authored by David Baker
parent 1af3ae70f8
commit 226b260319
2 changed files with 7 additions and 0 deletions
@@ -13,6 +13,7 @@ exports[`MVideoBody does not crash when given portrait dimensions 1`] = `
class="mx_MVideoBody"
controls=""
controlslist="nodownload"
crossorigin="anonymous"
poster="data:image/png;base64,00"
preload="none"
/>
@@ -37,6 +38,7 @@ exports[`MVideoBody should show poster for encrypted media before downloading it
class="mx_MVideoBody"
controls=""
controlslist="nodownload"
crossorigin="anonymous"
poster="https://server/_matrix/media/v3/download/server/encrypted-poster"
preload="none"
title="alt for a test video"
@@ -62,6 +64,7 @@ exports[`MVideoBody with video previews/thumbnails disabled should download vide
class="mx_MVideoBody"
controls=""
controlslist="nodownload"
crossorigin="anonymous"
poster="https://server/_matrix/media/v3/download/server/encrypted-poster"
preload="none"
title="alt for a test video"