aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.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/node.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/node.rs')
-rw-r--r--components/script/dom/node.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 935e7f0d746..280cd23b548 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -2490,6 +2490,7 @@ impl Node {
document.status_code(),
Default::default(),
false,
+ Some(document.insecure_requests_policy()),
can_gc,
);
DomRoot::upcast::<Node>(document)