Implement referrerPolicy for HTMLLinkElement and HTMLScriptElement

This commit is contained in:
YUAN LYU 2020-12-01 00:37:16 -05:00
parent 02af8952eb
commit a999850b24
15 changed files with 50 additions and 668 deletions

View file

@ -3773,6 +3773,27 @@ pub fn set_cross_origin_attribute(element: &Element, value: Option<DOMString>) {
}
}
pub fn reflect_referrer_policy_attribute(element: &Element) -> DOMString {
let attr =
element.get_attribute_by_name(DOMString::from_string(String::from("referrerpolicy")));
if let Some(mut val) = attr.map(|v| v.Value()) {
val.make_ascii_lowercase();
if val == "no-referrer" ||
val == "no-referrer-when-downgrade" ||
val == "same-origin" ||
val == "origin" ||
val == "strict-origin" ||
val == "origin-when-cross-origin" ||
val == "strict-origin-when-cross-origin" ||
val == "unsafe-url"
{
return val;
}
}
return DOMString::new();
}
pub(crate) fn referrer_policy_for_element(element: &Element) -> Option<ReferrerPolicy> {
element
.get_attribute_by_name(DOMString::from_string(String::from("referrerpolicy")))

View file

@ -13,7 +13,8 @@ use crate::dom::cssstylesheet::CSSStyleSheet;
use crate::dom::document::Document;
use crate::dom::domtokenlist::DOMTokenList;
use crate::dom::element::{
cors_setting_for_element, reflect_cross_origin_attribute, set_cross_origin_attribute,
cors_setting_for_element, reflect_cross_origin_attribute, reflect_referrer_policy_attribute,
set_cross_origin_attribute,
};
use crate::dom::element::{AttributeMutation, Element, ElementCreator};
use crate::dom::htmlelement::HTMLElement;
@ -490,6 +491,14 @@ impl HTMLLinkElementMethods for HTMLLinkElement {
set_cross_origin_attribute(self.upcast::<Element>(), value);
}
// https://html.spec.whatwg.org/multipage/#dom-link-referrerpolicy
fn ReferrerPolicy(&self) -> DOMString {
reflect_referrer_policy_attribute(self.upcast::<Element>())
}
// https://html.spec.whatwg.org/multipage/#dom-link-referrerpolicy
make_setter!(SetReferrerPolicy, "referrerpolicy");
// https://drafts.csswg.org/cssom/#dom-linkstyle-sheet
fn GetSheet(&self) -> Option<DomRoot<DOMStyleSheet>> {
self.get_cssom_stylesheet().map(DomRoot::upcast)

View file

@ -16,7 +16,8 @@ use crate::dom::bindings::str::{DOMString, USVString};
use crate::dom::bindings::trace::RootedTraceableBox;
use crate::dom::document::Document;
use crate::dom::element::{
cors_setting_for_element, reflect_cross_origin_attribute, set_cross_origin_attribute,
cors_setting_for_element, referrer_policy_for_element, reflect_cross_origin_attribute,
reflect_referrer_policy_attribute, set_cross_origin_attribute,
};
use crate::dom::element::{AttributeMutation, Element, ElementCreator};
use crate::dom::event::{Event, EventBubbles, EventCancelable, EventStatus};
@ -51,8 +52,10 @@ use msg::constellation_msg::PipelineId;
use net_traits::request::{
CorsSettings, CredentialsMode, Destination, ParserMetadata, RequestBuilder,
};
use net_traits::{FetchMetadata, FetchResponseListener, Metadata, NetworkError};
use net_traits::{ResourceFetchTiming, ResourceTimingType};
use net_traits::{
FetchMetadata, FetchResponseListener, Metadata, NetworkError, ResourceFetchTiming,
ResourceTimingType,
};
use servo_atoms::Atom;
use servo_config::pref;
use servo_url::ImmutableOrigin;
@ -717,7 +720,7 @@ impl HTMLScriptElement {
integrity_metadata: integrity_metadata.to_owned(),
parser_metadata,
referrer: self.global().get_referrer(),
referrer_policy: doc.get_referrer_policy(),
referrer_policy: referrer_policy_for_element(self.upcast::<Element>()),
credentials_mode: module_credentials_mode,
};
@ -1352,6 +1355,14 @@ impl HTMLScriptElementMethods for HTMLScriptElement {
set_cross_origin_attribute(self.upcast::<Element>(), value);
}
// https://html.spec.whatwg.org/multipage/#dom-script-referrerpolicy
fn ReferrerPolicy(&self) -> DOMString {
reflect_referrer_policy_attribute(self.upcast::<Element>())
}
// https://html.spec.whatwg.org/multipage/#dom-script-referrerpolicy
make_setter!(SetReferrerPolicy, "referrerpolicy");
// https://html.spec.whatwg.org/multipage/#dom-script-text
fn Text(&self) -> DOMString {
self.upcast::<Node>().child_text_content()

View file

@ -22,7 +22,8 @@ interface HTMLLinkElement : HTMLElement {
attribute DOMString type;
[CEReactions]
attribute DOMString integrity;
// [SameObject, PutForwards=value] readonly attribute DOMTokenList sizes;
[CEReactions]
attribute DOMString referrerPolicy;
// also has obsolete members
};

View file

@ -25,6 +25,8 @@ interface HTMLScriptElement : HTMLElement {
attribute DOMString text;
[CEReactions]
attribute DOMString integrity;
[CEReactions]
attribute DOMString referrerPolicy;
// also has obsolete members
};

View file

@ -2406,9 +2406,6 @@
[HTMLMarqueeElement interface: document.createElement("marquee") must inherit property "vspace" with the proper type]
expected: FAIL
[HTMLLinkElement interface: attribute referrerPolicy]
expected: FAIL
[HTMLInputElement interface: createInput("image") must inherit property "width" with the proper type]
expected: FAIL
@ -2637,12 +2634,6 @@
[HTMLMarqueeElement interface: document.createElement("marquee") must inherit property "direction" with the proper type]
expected: FAIL
[HTMLScriptElement interface: attribute referrerPolicy]
expected: FAIL
[HTMLLinkElement interface: document.createElement("link") must inherit property "referrerPolicy" with the proper type]
expected: FAIL
[HTMLUListElement interface: attribute compact]
expected: FAIL
@ -2832,9 +2823,6 @@
[HTMLObjectElement interface: attribute height]
expected: FAIL
[HTMLScriptElement interface: document.createElement("script") must inherit property "referrerPolicy" with the proper type]
expected: FAIL
[HTMLAreaElement interface: document.createElement("area") must inherit property "hash" with the proper type]
expected: FAIL

View file

@ -9780,342 +9780,6 @@
[link.nonce: IDL set to object "test-valueOf"]
expected: FAIL
[link.referrerPolicy: typeof IDL attribute]
expected: FAIL
[link.referrerPolicy: IDL get with DOM attribute unset]
expected: FAIL
[link.referrerPolicy: setAttribute() to ""]
expected: FAIL
[link.referrerPolicy: setAttribute() to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo "]
expected: FAIL
[link.referrerPolicy: setAttribute() to undefined]
expected: FAIL
[link.referrerPolicy: setAttribute() to 7]
expected: FAIL
[link.referrerPolicy: setAttribute() to 1.5]
expected: FAIL
[link.referrerPolicy: setAttribute() to true]
expected: FAIL
[link.referrerPolicy: setAttribute() to false]
expected: FAIL
[link.referrerPolicy: setAttribute() to object "[object Object\]"]
expected: FAIL
[link.referrerPolicy: setAttribute() to NaN]
expected: FAIL
[link.referrerPolicy: setAttribute() to Infinity]
expected: FAIL
[link.referrerPolicy: setAttribute() to -Infinity]
expected: FAIL
[link.referrerPolicy: setAttribute() to "\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to null]
expected: FAIL
[link.referrerPolicy: setAttribute() to object "test-toString"]
expected: FAIL
[link.referrerPolicy: setAttribute() to object "test-valueOf"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "no-referrer"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xno-referrer"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "no-referrer\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "o-referrer"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "NO-REFERRER"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "no-referrer-when-downgrade"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "o-referrer-when-downgrade"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "same-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xsame-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "same-origin\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "ame-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "SAME-ORIGIN"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xorigin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "origin\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "rigin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "ORIGIN"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "strict-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xstrict-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "strict-origin\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "trict-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "STRICT-ORIGIN"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xorigin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "origin-when-cross-origin\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "rigin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "unsafe-url"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "xunsafe-url"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "unsafe-url\\0"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "nsafe-url"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "UNSAFE-URL"]
expected: FAIL
[link.referrerPolicy: IDL set to ""]
expected: FAIL
[link.referrerPolicy: IDL set to " \\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07 \\b\\t\\n\\v\\f\\r\\x0e\\x0f \\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17 \\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f foo "]
expected: FAIL
[link.referrerPolicy: IDL set to undefined]
expected: FAIL
[link.referrerPolicy: IDL set to 7]
expected: FAIL
[link.referrerPolicy: IDL set to 1.5]
expected: FAIL
[link.referrerPolicy: IDL set to true]
expected: FAIL
[link.referrerPolicy: IDL set to false]
expected: FAIL
[link.referrerPolicy: IDL set to object "[object Object\]"]
expected: FAIL
[link.referrerPolicy: IDL set to NaN]
expected: FAIL
[link.referrerPolicy: IDL set to Infinity]
expected: FAIL
[link.referrerPolicy: IDL set to -Infinity]
expected: FAIL
[link.referrerPolicy: IDL set to "\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to null]
expected: FAIL
[link.referrerPolicy: IDL set to object "test-toString"]
expected: FAIL
[link.referrerPolicy: IDL set to object "test-valueOf"]
expected: FAIL
[link.referrerPolicy: IDL set to "no-referrer"]
expected: FAIL
[link.referrerPolicy: IDL set to "xno-referrer"]
expected: FAIL
[link.referrerPolicy: IDL set to "no-referrer\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "o-referrer"]
expected: FAIL
[link.referrerPolicy: IDL set to "NO-REFERRER"]
expected: FAIL
[link.referrerPolicy: IDL set to "no-referrer-when-downgrade"]
expected: FAIL
[link.referrerPolicy: IDL set to "xno-referrer-when-downgrade"]
expected: FAIL
[link.referrerPolicy: IDL set to "no-referrer-when-downgrade\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "o-referrer-when-downgrade"]
expected: FAIL
[link.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE"]
expected: FAIL
[link.referrerPolicy: IDL set to "same-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "xsame-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "same-origin\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "ame-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "SAME-ORIGIN"]
expected: FAIL
[link.referrerPolicy: IDL set to "origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "xorigin"]
expected: FAIL
[link.referrerPolicy: IDL set to "origin\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "rigin"]
expected: FAIL
[link.referrerPolicy: IDL set to "ORIGIN"]
expected: FAIL
[link.referrerPolicy: IDL set to "strict-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "xstrict-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "strict-origin\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "trict-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "STRICT-ORIGIN"]
expected: FAIL
[link.referrerPolicy: IDL set to "origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "xorigin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "origin-when-cross-origin\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "rigin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN"]
expected: FAIL
[link.referrerPolicy: IDL set to "strict-origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "strict-origin-when-cross-origin\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "trict-origin-when-cross-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"]
expected: FAIL
[link.referrerPolicy: IDL set to "unsafe-url"]
expected: FAIL
[link.referrerPolicy: IDL set to "xunsafe-url"]
expected: FAIL
[link.referrerPolicy: IDL set to "unsafe-url\\0"]
expected: FAIL
[link.referrerPolicy: IDL set to "nsafe-url"]
expected: FAIL
[link.referrerPolicy: IDL set to "UNSAFE-URL"]
expected: FAIL
[link.as: typeof IDL attribute]
expected: FAIL
@ -11295,9 +10959,6 @@
[meta.httpEquiv (<meta http-equiv>): setAttribute() to "5%"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "5%"]
expected: FAIL
[meta.dir: setAttribute() to "5%"]
expected: FAIL
@ -11427,9 +11088,6 @@
[title.dir: setAttribute() to "5%"]
expected: FAIL
[link.referrerPolicy: IDL set to "5%"]
expected: FAIL
[base.target: IDL set to "5%"]
expected: FAIL
@ -11463,9 +11121,6 @@
[style.accessKey: setAttribute() to ".5"]
expected: FAIL
[link.referrerPolicy: IDL set to "+100"]
expected: FAIL
[base.accessKey: setAttribute() to "+100"]
expected: FAIL
@ -11610,9 +11265,6 @@
[head.dir: setAttribute() to "+100"]
expected: FAIL
[link.referrerPolicy: IDL set to ".5"]
expected: FAIL
[head.accessKey: IDL set to "+100"]
expected: FAIL
@ -11667,9 +11319,6 @@
[meta.scheme: IDL set to ".5"]
expected: FAIL
[link.referrerPolicy: setAttribute() to ".5"]
expected: FAIL
[title.accessKey: IDL set to ".5"]
expected: FAIL
@ -11700,9 +11349,6 @@
[meta.dir: IDL set to "+100"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "+100"]
expected: FAIL
[meta.accessKey: IDL set to "+100"]
expected: FAIL
@ -12417,57 +12063,27 @@
[link.autofocus: setAttribute() to object "[object Object\]"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "ſtrict-origin"]
expected: FAIL
[link.as: setAttribute() to "xſlt"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "unſafe-url"]
expected: FAIL
[link.as: setAttribute() to "ſharedworker"]
expected: FAIL
[link.as: IDL set to "ſharedworker"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "ſtrict-origin-when-croſſ-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "origin-when-croſſ-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "ſtrict-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "unſafe-url"]
expected: FAIL
[link.referrerPolicy: IDL set to "ſame-origin"]
expected: FAIL
[link.as: IDL set to "ſcript"]
expected: FAIL
[link.as: IDL set to "manifeſt"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "origin-when-croſſ-origin"]
expected: FAIL
[link.referrerPolicy: IDL set to "ſtrict-origin-when-croſſ-origin"]
expected: FAIL
[link.as: setAttribute() to "ſtyle"]
expected: FAIL
[link.as: IDL set to "xſlt"]
expected: FAIL
[link.referrerPolicy: setAttribute() to "ſame-origin"]
expected: FAIL
[link.as: IDL set to "ſtyle"]
expected: FAIL

View file

@ -1,37 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects stripped-referrer for script-tag to same-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-http origin and no-redirect redirection from http context.]
expected: FAIL

View file

@ -1,37 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects omitted for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to cross-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to same-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to cross-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to same-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to cross-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to same-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to cross-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to cross-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to cross-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects omitted for script-tag to same-https origin and swap-origin redirection from http context.]
expected: FAIL

View file

@ -1,37 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects origin for script-tag to cross-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL

View file

@ -1,37 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects origin for script-tag to cross-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and keep-origin redirection from http context.]
expected: FAIL

View file

@ -1,7 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL

View file

@ -1,37 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects origin for script-tag to cross-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and swap-origin redirection from http context.]
expected: FAIL

View file

@ -1,37 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects origin for script-tag to cross-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to same-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects origin for script-tag to cross-https origin and keep-origin redirection from http context.]
expected: FAIL

View file

@ -1,37 +0,0 @@
[script-tag.http.html]
[Referrer Policy: Expects stripped-referrer for script-tag to same-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-http origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-https origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-http origin and swap-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-https origin and keep-origin redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to same-https origin and no-redirect redirection from http context.]
expected: FAIL
[Referrer Policy: Expects stripped-referrer for script-tag to cross-http origin and no-redirect redirection from http context.]
expected: FAIL