aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authorShubham Gupta <32428749+shubhamg13@users.noreply.github.com>2025-02-05 20:49:56 +0800
committerGitHub <noreply@github.com>2025-02-05 12:49:56 +0000
commit1e164738d8ca12a5b69b6f7adfc1b79555890726 (patch)
treee67c884567d9b022d39850e31881eb20fc22cf4b /components/script/dom/htmlimageelement.rs
parent7b36f2beb3b8266460a03090eba7fa6e9999cce0 (diff)
downloadservo-1e164738d8ca12a5b69b6f7adfc1b79555890726.tar.gz
servo-1e164738d8ca12a5b69b6f7adfc1b79555890726.zip
Add support for Upgrade request to a potentially trustworthy URL. (#34986)
* Add support for Upgrade request to a potentially trustworthy URL. Signed-off-by: Shubham Gupta <shubham13297@gmail.com> * script: Support inheritable insecure request policy in documents and workers. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Shubham Gupta <shubham13297@gmail.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Shubham Gupta <shubham.gupta@chromium.org> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index bbe40bfc43f..de7861ea0e7 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -423,6 +423,7 @@ impl HTMLImageElement {
cors_setting_for_element(self.upcast()),
None,
document.global().get_referrer(),
+ document.insecure_requests_policy(),
)
.origin(document.origin().immutable().clone())
.pipeline_id(Some(document.global().pipeline_id()))