diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs
index b707d9c93a1..6f27c164d02 100644
--- a/components/script/dom/htmlvideoelement.rs
+++ b/components/script/dom/htmlvideoelement.rs
@@ -233,8 +233,10 @@ impl HTMLVideoElement {
.credentials_mode(CredentialsMode::Include)
.use_url_credentials(true)
.origin(document.origin().immutable().clone())
- .pipeline_id(Some(document.global().pipeline_id()));
-
+ .pipeline_id(Some(document.global().pipeline_id()))
+ .insecure_requests_policy(document.insecure_requests_policy())
+ .has_trustworthy_ancestor_origin(document.has_trustworthy_ancestor_origin())
+ .policy_container(document.policy_container().to_owned());
// Step 5.
// This delay must be independent from the ones created by HTMLMediaElement during
// its media load algorithm, otherwise a code like
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index b6782318356..2ef84bb18a6 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -14178,6 +14178,13 @@
{}
]
],
+ "video_poster_csp.sub.html": [
+ "cc5dfd54c1e39904d5c919f6bd6840d65dcc0fa8",
+ [
+ null,
+ {}
+ ]
+ ],
"weakref.html": [
"4deccbe1e26a3f921eea85a4395394a55cc88be4",
[
diff --git a/tests/wpt/mozilla/meta/__dir__.ini b/tests/wpt/mozilla/meta/__dir__.ini
index a57c0286b12..925f07e1c50 100644
--- a/tests/wpt/mozilla/meta/__dir__.ini
+++ b/tests/wpt/mozilla/meta/__dir__.ini
@@ -1,3 +1,4 @@
prefs: [
"dom_urlpattern_enabled:true",
+ "media_testing_enabled:true",
]
diff --git a/tests/wpt/mozilla/meta/mozilla/video_poster_frame.html.ini b/tests/wpt/mozilla/meta/mozilla/video_poster_frame.html.ini
deleted file mode 100644
index a8b5c2da0c5..00000000000
--- a/tests/wpt/mozilla/meta/mozilla/video_poster_frame.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[video_poster_frame.html]
- expected: TIMEOUT
diff --git a/tests/wpt/mozilla/tests/mozilla/video_poster_csp.sub.html b/tests/wpt/mozilla/tests/mozilla/video_poster_csp.sub.html
new file mode 100644
index 00000000000..cc5dfd54c1e
--- /dev/null
+++ b/tests/wpt/mozilla/tests/mozilla/video_poster_csp.sub.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+