mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement PolicyContainer and update the default ReferrerPolicy (#33977)
* Implement PolicyContainer Signed-off-by: Shane Handley <shanehandley@fastmail.com> * implement small parts of fetch that interact with policy container Signed-off-by: Shane Handley <shanehandley@fastmail.com> * fix: allow policy container's csp list to be unset Signed-off-by: Shane Handley <shanehandley@fastmail.com> * fix: use the correct default policy when parsing from a token Signed-off-by: Shane Handley <shanehandley@fastmail.com> --------- Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
parent
4f6283d7fe
commit
6451767428
201 changed files with 210 additions and 5178 deletions
|
@ -95,7 +95,7 @@ impl HTMLHeadElement {
|
|||
|
||||
let mut csp_list: Option<CspList> = None;
|
||||
let node = self.upcast::<Node>();
|
||||
let candinates = node
|
||||
let candidates = node
|
||||
.traverse_preorder(ShadowIncluding::No)
|
||||
.filter_map(DomRoot::downcast::<Element>)
|
||||
.filter(|elem| elem.is::<HTMLMetaElement>())
|
||||
|
@ -109,7 +109,7 @@ impl HTMLHeadElement {
|
|||
.is_some()
|
||||
});
|
||||
|
||||
for meta in candinates {
|
||||
for meta in candidates {
|
||||
if let Some(ref content) = meta.get_attribute(&ns!(), &local_name!("content")) {
|
||||
let content = content.value();
|
||||
let content_val = content.trim();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue