summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/media-src/media-src-blocked.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/media-src/media-src-blocked.sub.html')
-rw-r--r--testing/web-platform/tests/content-security-policy/media-src/media-src-blocked.sub.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/web-platform/tests/content-security-policy/media-src/media-src-blocked.sub.html b/testing/web-platform/tests/content-security-policy/media-src/media-src-blocked.sub.html
index b2b57dec64..16c36dfb20 100644
--- a/testing/web-platform/tests/content-security-policy/media-src/media-src-blocked.sub.html
+++ b/testing/web-platform/tests/content-security-policy/media-src/media-src-blocked.sub.html
@@ -14,7 +14,7 @@
<script>
const otherOrigin = get_host_info().OTHER_ORIGIN;
const audioUrl = otherOrigin + "/media/sound_5.oga";
- const videoUrl = otherOrigin + "/media/A4.ogv";
+ const videoUrl = otherOrigin + "/media/A4.webm";
// Asynchronously returns the next `securitypolicyviolation` event.
async function nextViolation() {
@@ -29,7 +29,7 @@
const violationPromise = nextViolation();
const video = document.createElement("video");
- video.type = "video/ogg";
+ video.type = "video/webm";
video.src = videoUrl;
video.onloadeddata = reject;
video.onerror = () => { resolve(violationPromise); };
@@ -49,7 +49,7 @@
video.onloadeddata = reject;
const source = document.createElement("source");
- source.type = "video/ogg";
+ source.type = "video/webm";
source.src = videoUrl;
source.onerror = () => { resolve(violationPromise); };
@@ -64,7 +64,7 @@
const violationPromise = nextViolation();
const audio = document.createElement("audio");
- audio.type = "audio/ogg";
+ audio.type = "audio/webm";
audio.src = audioUrl;
audio.oncanplay = reject;
audio.onloadedmetadata = reject;
@@ -86,7 +86,7 @@
audio.onloadeddata = reject;
const source = document.createElement("source");
- source.type = "audio/ogg";
+ source.type = "audio/webm";
source.src = audioUrl;
source.onerror = () => { resolve(violationPromise); };