From 310821d3b0c88a5f7ef15c228d2a2b514ebcc477 Mon Sep 17 00:00:00 2001 From: Utsav Oza Date: Sun, 28 Jun 2020 14:45:38 +0530 Subject: [PATCH 1/3] Update referrer computation Update unit tests for determine_requests_referrer Update wpt metadata Add missing spec links --- components/net/fetch/methods.rs | 34 ++--- components/net/http_loader.rs | 125 ++++++++++-------- components/net/tests/http_loader.rs | 36 ++--- components/script/dom/globalscope.rs | 4 +- components/url/lib.rs | 22 ++- .../xhr.http.html.ini | 37 ------ .../no-referrer/xhr.http.html.ini | 37 ++++++ .../xhr.http.html.ini | 6 - .../same-origin/xhr.http.html.ini | 22 ++- .../xhr.http.html.ini | 6 - .../unsafe-url/xhr.http.html.ini | 37 ------ .../unset/xhr.http.html.ini | 37 ------ .../xhr.http.html.ini | 37 ------ .../no-referrer/xhr.http.html.ini | 37 ++++++ .../xhr.http.html.ini | 6 - .../same-origin/xhr.http.html.ini | 22 ++- .../xhr.http.html.ini | 6 - .../unsafe-url/xhr.http.html.ini | 37 ------ .../unset/xhr.http.html.ini | 37 ------ .../xhr.http.html.ini | 37 ------ .../xhr.http.html.ini | 37 ------ .../gen/srcdoc.meta/origin/xhr.http.html.ini | 37 ------ .../srcdoc.meta/same-origin/xhr.http.html.ini | 7 - .../xhr.http.html.ini | 37 ------ .../strict-origin/xhr.http.html.ini | 37 ------ .../srcdoc.meta/unsafe-url/xhr.http.html.ini | 37 ------ 26 files changed, 229 insertions(+), 585 deletions(-) delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer-when-downgrade/xhr.http.html.ini create mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unsafe-url/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unset/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer-when-downgrade/xhr.http.html.ini create mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unsafe-url/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unset/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/no-referrer-when-downgrade/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin-when-cross-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/same-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin-when-cross-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/unsafe-url/xhr.http.html.ini diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index 41b804fb7fc..a6ae6b4b234 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -5,7 +5,7 @@ use crate::data_loader::decode; use crate::fetch::cors_cache::CorsCache; use crate::filemanager_thread::{FileManager, FILE_CHUNK_SIZE}; -use crate::http_loader::{determine_request_referrer, http_fetch, HttpState}; +use crate::http_loader::{determine_requests_referrer, http_fetch, HttpState}; use crate::http_loader::{set_default_accept, set_default_accept_language}; use crate::subresource_integrity::is_response_integrity_valid; use content_security_policy as csp; @@ -236,25 +236,19 @@ pub fn main_fetch( .or(Some(ReferrerPolicy::NoReferrerWhenDowngrade)); // Step 8. - { - let referrer_url = match mem::replace(&mut request.referrer, Referrer::NoReferrer) { - Referrer::NoReferrer => None, - Referrer::ReferrerUrl(url) | Referrer::Client(url) => { - request.headers.remove(header::REFERER); - let current_url = request.current_url(); - determine_request_referrer( - &mut request.headers, - request.referrer_policy.unwrap(), - url, - current_url, - request.https_state, - ) - }, - }; - if let Some(referrer_url) = referrer_url { - request.referrer = Referrer::ReferrerUrl(referrer_url); - } - } + assert!(request.referrer_policy.is_some()); + let referrer_url = match mem::replace(&mut request.referrer, Referrer::NoReferrer) { + Referrer::NoReferrer => None, + Referrer::ReferrerUrl(referrer_source) | Referrer::Client(referrer_source) => { + request.headers.remove(header::REFERER); + determine_requests_referrer( + request.referrer_policy.unwrap(), + referrer_source, + request.current_url(), + ) + }, + }; + request.referrer = referrer_url.map_or(Referrer::NoReferrer, |url| Referrer::ReferrerUrl(url)); // Step 9. // TODO: handle FTP URLs. diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index eaed2ff1989..bc7b83828e8 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -180,43 +180,40 @@ pub fn set_default_accept_language(headers: &mut HeaderMap) { } /// -fn no_referrer_when_downgrade_header( - referrer_url: ServoUrl, - url: ServoUrl, - https_state: HttpsState, -) -> Option { - if https_state == HttpsState::Modern && !url.is_origin_trustworthy() { +fn no_referrer_when_downgrade(referrer_url: ServoUrl, current_url: ServoUrl) -> Option { + // Step 1 + if referrer_url.is_potentially_trustworthy() && !current_url.is_potentially_trustworthy() { return None; } - return strip_url(referrer_url, false); + // Step 2 + return strip_url_for_use_as_referrer(referrer_url, false); } /// -fn strict_origin( - referrer_url: ServoUrl, - url: ServoUrl, - https_state: HttpsState, -) -> Option { - if https_state == HttpsState::Modern && !url.is_origin_trustworthy() { +fn strict_origin(referrer_url: ServoUrl, current_url: ServoUrl) -> Option { + // Step 1 + if referrer_url.is_potentially_trustworthy() && !current_url.is_potentially_trustworthy() { return None; } - strip_url(referrer_url, true) + // Step 2 + strip_url_for_use_as_referrer(referrer_url, true) } /// fn strict_origin_when_cross_origin( referrer_url: ServoUrl, - url: ServoUrl, - https_state: HttpsState, + current_url: ServoUrl, ) -> Option { - let same_origin = referrer_url.origin() == url.origin(); - if same_origin { - return strip_url(referrer_url, false); + // Step 1 + if referrer_url.origin() == current_url.origin() { + return strip_url_for_use_as_referrer(referrer_url, false); } - if https_state == HttpsState::Modern && !url.is_origin_trustworthy() { + // Step 2 + if referrer_url.is_potentially_trustworthy() && !current_url.is_potentially_trustworthy() { return None; } - strip_url(referrer_url, true) + // Step 3 + strip_url_for_use_as_referrer(referrer_url, true) } /// https://html.spec.whatwg.org/multipage/#schemelessly-same-site @@ -242,56 +239,70 @@ fn is_schemelessy_same_site(site_a: &ImmutableOrigin, site_b: &ImmutableOrigin) } /// -fn strip_url(mut referrer_url: ServoUrl, origin_only: bool) -> Option { +fn strip_url_for_use_as_referrer(mut url: ServoUrl, origin_only: bool) -> Option { const MAX_REFERRER_URL_LENGTH: usize = 4096; - if referrer_url.scheme() == "https" || referrer_url.scheme() == "http" { - { - let referrer = referrer_url.as_mut_url(); - referrer.set_username("").unwrap(); - referrer.set_password(None).unwrap(); - referrer.set_fragment(None); - // Limit `referer` header's value to 4k - if origin_only || referrer.as_str().len() > MAX_REFERRER_URL_LENGTH { - referrer.set_path(""); - referrer.set_query(None); - } - } - return Some(referrer_url); + // Step 2 + if url.is_local_scheme() { + return None; } - return None; + // Step 3-6 + { + let url = url.as_mut_url(); + url.set_username("").unwrap(); + url.set_password(None).unwrap(); + url.set_fragment(None); + // Note: The result of serializing referrer url should not be + // greater than 4096 as specified in Step 6 of + // https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer + if origin_only || url.as_str().len() > MAX_REFERRER_URL_LENGTH { + url.set_path(""); + url.set_query(None); + } + } + // Step 7 + Some(url) +} + +/// +fn same_origin(referrer_url: ServoUrl, current_url: ServoUrl) -> Option { + // Step 1 + if referrer_url.origin() == current_url.origin() { + return strip_url_for_use_as_referrer(referrer_url, false); + } + // Step 2 + None +} + +/// +fn origin_when_cross_origin(referrer_url: ServoUrl, current_url: ServoUrl) -> Option { + // Step 1 + if referrer_url.origin() == current_url.origin() { + return strip_url_for_use_as_referrer(referrer_url, false); + } + // Step 2 + strip_url_for_use_as_referrer(referrer_url, true) } /// -/// Steps 4-6. -pub fn determine_request_referrer( - headers: &mut HeaderMap, +pub fn determine_requests_referrer( referrer_policy: ReferrerPolicy, referrer_source: ServoUrl, current_url: ServoUrl, - https_state: HttpsState, ) -> Option { - assert!(!headers.contains_key(header::REFERER)); - // FIXME(#14505): this does not seem to be the correct way of checking for - // same-origin requests. - let cross_origin = referrer_source.origin() != current_url.origin(); match referrer_policy { ReferrerPolicy::NoReferrer => None, - ReferrerPolicy::Origin => strip_url(referrer_source, true), - ReferrerPolicy::SameOrigin => { - if cross_origin { - None - } else { - strip_url(referrer_source, false) - } - }, - ReferrerPolicy::UnsafeUrl => strip_url(referrer_source, false), - ReferrerPolicy::OriginWhenCrossOrigin => strip_url(referrer_source, cross_origin), - ReferrerPolicy::StrictOrigin => strict_origin(referrer_source, current_url, https_state), + ReferrerPolicy::Origin => strip_url_for_use_as_referrer(referrer_source, true), + ReferrerPolicy::UnsafeUrl => strip_url_for_use_as_referrer(referrer_source, false), + ReferrerPolicy::StrictOrigin => strict_origin(referrer_source, current_url), ReferrerPolicy::StrictOriginWhenCrossOrigin => { - strict_origin_when_cross_origin(referrer_source, current_url, https_state) + strict_origin_when_cross_origin(referrer_source, current_url) + }, + ReferrerPolicy::SameOrigin => same_origin(referrer_source, current_url), + ReferrerPolicy::OriginWhenCrossOrigin => { + origin_when_cross_origin(referrer_source, current_url) }, ReferrerPolicy::NoReferrerWhenDowngrade => { - no_referrer_when_downgrade_header(referrer_source, current_url, https_state) + no_referrer_when_downgrade(referrer_source, current_url) }, } } diff --git a/components/net/tests/http_loader.rs b/components/net/tests/http_loader.rs index 0cea1e3add6..546f7a1f3ea 100644 --- a/components/net/tests/http_loader.rs +++ b/components/net/tests/http_loader.rs @@ -29,14 +29,14 @@ use ipc_channel::router::ROUTER; use msg::constellation_msg::TEST_PIPELINE_ID; use net::cookie::Cookie; use net::cookie_storage::CookieStorage; -use net::http_loader::determine_request_referrer; +use net::http_loader::determine_requests_referrer; use net::resource_thread::AuthCacheEntry; use net::test::replace_host_table; use net_traits::request::{ BodyChunkRequest, BodyChunkResponse, BodySource, CredentialsMode, Destination, Referrer, RequestBody, RequestBuilder, RequestMode, }; -use net_traits::response::{HttpsState, ResponseBody}; +use net_traits::response::ResponseBody; use net_traits::{CookieSource, NetworkError, ReferrerPolicy}; use servo_url::{ImmutableOrigin, ServoUrl}; use std::collections::HashMap; @@ -1447,22 +1447,13 @@ fn test_origin_set() { } #[test] -fn test_determine_request_referrer_shorter_than_4k() { - let mut headers = HeaderMap::new(); - - let referrer_source = - ServoUrl::parse("http://username:password@example.com/such/short/referer?query#fragment") - .unwrap(); - +fn test_determine_requests_referrer_shorter_than_4k() { + let url_str = "http://username:password@example.com/such/short/referer?query#fragment"; + let referrer_source = ServoUrl::parse(url_str).unwrap(); let current_url = ServoUrl::parse("http://example.com/current/url").unwrap(); + let referrer_policy = ReferrerPolicy::UnsafeUrl; - let referer = determine_request_referrer( - &mut headers, - ReferrerPolicy::UnsafeUrl, - referrer_source, - current_url, - HttpsState::None, - ); + let referer = determine_requests_referrer(referrer_policy, referrer_source, current_url); assert_eq!( referer.unwrap().as_str(), @@ -1471,23 +1462,16 @@ fn test_determine_request_referrer_shorter_than_4k() { } #[test] -fn test_determine_request_referrer_longer_than_4k() { +fn test_determine_requests_referrer_longer_than_4k() { let long_url_str = format!( "http://username:password@example.com/such/{}/referer?query#fragment", "long".repeat(1024) ); - - let mut headers = HeaderMap::new(); let referrer_source = ServoUrl::parse(&long_url_str).unwrap(); let current_url = ServoUrl::parse("http://example.com/current/url").unwrap(); + let referrer_policy = ReferrerPolicy::UnsafeUrl; - let referer = determine_request_referrer( - &mut headers, - ReferrerPolicy::UnsafeUrl, - referrer_source, - current_url, - HttpsState::None, - ); + let referer = determine_requests_referrer(referrer_policy, referrer_source, current_url); assert_eq!(referer.unwrap().as_str(), "http://example.com/"); } diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs index eec99116bcf..b82af6a1394 100644 --- a/components/script/dom/globalscope.rs +++ b/components/script/dom/globalscope.rs @@ -2370,10 +2370,10 @@ impl GlobalScope { } // Substep 3.1.4 - return Referrer::Client(url); + Referrer::Client(url) } else { // Substep 3.2 - return Referrer::Client(self.get_url()); + Referrer::Client(self.get_url()) } } diff --git a/components/url/lib.rs b/components/url/lib.rs index f58bbbad3ff..d59d79e519a 100644 --- a/components/url/lib.rs +++ b/components/url/lib.rs @@ -97,6 +97,12 @@ impl ServoUrl { scheme == "https" || scheme == "wss" } + /// + pub fn is_local_scheme(&self) -> bool { + let scheme = self.scheme(); + scheme == "about" || scheme == "blob" || scheme == "data" + } + pub fn is_chrome(&self) -> bool { self.scheme() == "chrome" } @@ -169,7 +175,21 @@ impl ServoUrl { Ok(Self::from_url(Url::from_file_path(path)?)) } - // https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy + /// + pub fn is_potentially_trustworthy(&self) -> bool { + // Step 1 + if self.as_str() == "about:blank" || self.as_str() == "about:srcdoc" { + return true; + } + // Step 2 + if self.scheme() == "data" { + return true; + } + // Step 3 + self.is_origin_trustworthy() + } + + /// pub fn is_origin_trustworthy(&self) -> bool { // Step 1 if !self.origin().is_tuple() { diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer-when-downgrade/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer-when-downgrade/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer-when-downgrade/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini new file mode 100644 index 00000000000..283fc71627c --- /dev/null +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini @@ -0,0 +1,37 @@ +[xhr.http.html] + [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-http origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-http origin and keep-origin redirection from http context.] + expected: FAIL + diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini index 00fb4fb96db..b30686cae0c 100644 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini @@ -11,18 +11,12 @@ [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] expected: FAIL [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] expected: FAIL diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini index f3e2e96214b..08ff988b50a 100644 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini @@ -1,7 +1,25 @@ [xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] + [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] + [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] expected: FAIL diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini index 00fb4fb96db..b30686cae0c 100644 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini @@ -11,18 +11,12 @@ [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] expected: FAIL [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] expected: FAIL diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unsafe-url/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unsafe-url/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unsafe-url/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unset/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unset/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/unset/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer-when-downgrade/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer-when-downgrade/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer-when-downgrade/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini new file mode 100644 index 00000000000..283fc71627c --- /dev/null +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini @@ -0,0 +1,37 @@ +[xhr.http.html] + [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-http origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-http origin and keep-origin redirection from http context.] + expected: FAIL + diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini index 00fb4fb96db..b30686cae0c 100644 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini @@ -11,18 +11,12 @@ [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] expected: FAIL [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] expected: FAIL diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini index f3e2e96214b..08ff988b50a 100644 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini @@ -1,7 +1,25 @@ [xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] + [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] + [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] + expected: FAIL + + [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] expected: FAIL diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini index 00fb4fb96db..b30686cae0c 100644 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini +++ b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini @@ -11,18 +11,12 @@ [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] expected: FAIL [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] expected: FAIL - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] expected: FAIL diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unsafe-url/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unsafe-url/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unsafe-url/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unset/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unset/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/unset/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/no-referrer-when-downgrade/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/no-referrer-when-downgrade/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/no-referrer-when-downgrade/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin-when-cross-origin/xhr.http.html.ini deleted file mode 100644 index 00fb4fb96db..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin-when-cross-origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin/xhr.http.html.ini deleted file mode 100644 index c0c4d2fb7cf..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/same-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/same-origin/xhr.http.html.ini deleted file mode 100644 index f3e2e96214b..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/same-origin/xhr.http.html.ini +++ /dev/null @@ -1,7 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin-when-cross-origin/xhr.http.html.ini deleted file mode 100644 index 00fb4fb96db..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin-when-cross-origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin/xhr.http.html.ini deleted file mode 100644 index c0c4d2fb7cf..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/strict-origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/unsafe-url/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/unsafe-url/xhr.http.html.ini deleted file mode 100644 index b9994300f08..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc.meta/unsafe-url/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - From dd57641987996abcf3886b436231aa07bb00fea7 Mon Sep 17 00:00:00 2001 From: Utsav Oza Date: Wed, 1 Jul 2020 16:43:32 +0530 Subject: [PATCH 2/3] Propagate referrer policy during about:srcdoc page load --- components/net_traits/lib.rs | 34 +++++++++++++++++ components/script/script_thread.rs | 7 ++-- .../no-referrer/iframe-tag.http.html.ini | 37 ------------------- .../no-referrer/img-tag.http.html.ini | 37 ------------------- .../no-referrer/script-tag.http.html.ini | 37 ------------------- .../no-referrer/xhr.http.html.ini | 37 ------------------- .../iframe-tag.http.html.ini | 31 ---------------- .../img-tag.http.html.ini | 31 ---------------- .../script-tag.http.html.ini | 31 ---------------- .../xhr.http.html.ini | 31 ---------------- .../origin/iframe-tag.http.html.ini | 37 ------------------- .../origin/img-tag.http.html.ini | 37 ------------------- .../origin/script-tag.http.html.ini | 37 ------------------- .../origin/xhr.http.html.ini | 37 ------------------- .../same-origin/iframe-tag.http.html.ini | 25 ------------- .../same-origin/img-tag.http.html.ini | 25 ------------- .../same-origin/script-tag.http.html.ini | 25 ------------- .../same-origin/xhr.http.html.ini | 25 ------------- .../iframe-tag.http.html.ini | 31 ---------------- .../img-tag.http.html.ini | 31 ---------------- .../script-tag.http.html.ini | 31 ---------------- .../xhr.http.html.ini | 31 ---------------- .../strict-origin/iframe-tag.http.html.ini | 37 ------------------- .../strict-origin/img-tag.http.html.ini | 37 ------------------- .../strict-origin/script-tag.http.html.ini | 37 ------------------- .../strict-origin/xhr.http.html.ini | 37 ------------------- .../no-referrer/iframe-tag.http.html.ini | 37 ------------------- .../no-referrer/img-tag.http.html.ini | 37 ------------------- .../no-referrer/script-tag.http.html.ini | 37 ------------------- .../no-referrer/xhr.http.html.ini | 37 ------------------- .../iframe-tag.http.html.ini | 31 ---------------- .../img-tag.http.html.ini | 31 ---------------- .../script-tag.http.html.ini | 31 ---------------- .../xhr.http.html.ini | 31 ---------------- .../origin/iframe-tag.http.html.ini | 37 ------------------- .../origin/img-tag.http.html.ini | 37 ------------------- .../origin/script-tag.http.html.ini | 37 ------------------- .../origin/xhr.http.html.ini | 37 ------------------- .../same-origin/iframe-tag.http.html.ini | 25 ------------- .../same-origin/img-tag.http.html.ini | 25 ------------- .../same-origin/script-tag.http.html.ini | 25 ------------- .../same-origin/xhr.http.html.ini | 25 ------------- .../iframe-tag.http.html.ini | 31 ---------------- .../img-tag.http.html.ini | 31 ---------------- .../script-tag.http.html.ini | 31 ---------------- .../xhr.http.html.ini | 31 ---------------- .../strict-origin/iframe-tag.http.html.ini | 37 ------------------- .../strict-origin/img-tag.http.html.ini | 37 ------------------- .../strict-origin/script-tag.http.html.ini | 37 ------------------- .../strict-origin/xhr.http.html.ini | 37 ------------------- .../iframe-inheritance-srcdoc-child.html.ini | 4 -- .../iframe-inheritance-srcdoc.html.ini | 4 -- 52 files changed, 38 insertions(+), 1595 deletions(-) delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/iframe-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/img-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/script-tag.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/xhr.http.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc-child.html.ini delete mode 100644 tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc.html.ini diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs index 6dea965d7f8..83d9513d987 100644 --- a/components/net_traits/lib.rs +++ b/components/net_traits/lib.rs @@ -162,6 +162,25 @@ impl From for ReferrerPolicy { } } +impl From for ReferrerPolicyHeader { + fn from(referrer_policy: ReferrerPolicy) -> Self { + match referrer_policy { + ReferrerPolicy::NoReferrer => ReferrerPolicyHeader::NO_REFERRER, + ReferrerPolicy::NoReferrerWhenDowngrade => { + ReferrerPolicyHeader::NO_REFERRER_WHEN_DOWNGRADE + }, + ReferrerPolicy::SameOrigin => ReferrerPolicyHeader::SAME_ORIGIN, + ReferrerPolicy::Origin => ReferrerPolicyHeader::ORIGIN, + ReferrerPolicy::OriginWhenCrossOrigin => ReferrerPolicyHeader::ORIGIN_WHEN_CROSS_ORIGIN, + ReferrerPolicy::UnsafeUrl => ReferrerPolicyHeader::UNSAFE_URL, + ReferrerPolicy::StrictOrigin => ReferrerPolicyHeader::STRICT_ORIGIN, + ReferrerPolicy::StrictOriginWhenCrossOrigin => { + ReferrerPolicyHeader::STRICT_ORIGIN_WHEN_CROSS_ORIGIN + }, + } + } +} + #[derive(Debug, Deserialize, Serialize)] pub enum FetchResponseMsg { // todo: should have fields for transmitted/total bytes @@ -695,6 +714,21 @@ impl Metadata { self.content_type = Some(Serde(ContentType::from(mime.clone()))); } } + + /// Set the referrer policy associated with the loaded resource. + pub fn set_referrer_policy(&mut self, referrer_policy: Option) { + if self.headers.is_none() { + self.headers = Some(Serde(HeaderMap::new())); + } + + self.referrer_policy = referrer_policy; + if let Some(referrer_policy) = referrer_policy { + self.headers + .as_mut() + .unwrap() + .typed_insert::(referrer_policy.into()); + } + } } /// The creator of a given cookie diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 0ef48e78b17..6caba693309 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2502,7 +2502,7 @@ impl ScriptThread { if load_data.url.as_str() == "about:blank" { self.start_page_load_about_blank(new_load, load_data.js_eval_result); } else if load_data.url.as_str() == "about:srcdoc" { - self.page_load_about_srcdoc(new_load, load_data.srcdoc); + self.page_load_about_srcdoc(new_load, load_data); } else { self.pre_page_load(new_load, load_data); } @@ -3865,7 +3865,7 @@ impl ScriptThread { } /// Synchronously parse a srcdoc document from a giving HTML string. - fn page_load_about_srcdoc(&self, incomplete: InProgressLoad, src_doc: String) { + fn page_load_about_srcdoc(&self, incomplete: InProgressLoad, load_data: LoadData) { let id = incomplete.pipeline_id; self.incomplete_loads.borrow_mut().push(incomplete); @@ -3875,8 +3875,9 @@ impl ScriptThread { let mut meta = Metadata::default(url); meta.set_content_type(Some(&mime::TEXT_HTML)); + meta.set_referrer_policy(load_data.referrer_policy); - let chunk = src_doc.into_bytes(); + let chunk = load_data.srcdoc.into_bytes(); context.process_response(Ok(FetchMetadata::Unfiltered(meta))); context.process_response_chunk(chunk); diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/iframe-tag.http.html.ini deleted file mode 100644 index 7408079db11..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/iframe-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/img-tag.http.html.ini deleted file mode 100644 index 64bfd8254ac..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/img-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects omitted for img-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/script-tag.http.html.ini deleted file mode 100644 index be04a32349c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/script-tag.http.html.ini +++ /dev/null @@ -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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini deleted file mode 100644 index 283fc71627c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/no-referrer/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/iframe-tag.http.html.ini deleted file mode 100644 index 6154178b29f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/img-tag.http.html.ini deleted file mode 100644 index 1aa014c710c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/img-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/script-tag.http.html.ini deleted file mode 100644 index 568462231b7..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/script-tag.http.html.ini +++ /dev/null @@ -1,31 +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 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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini deleted file mode 100644 index b30686cae0c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin-when-cross-origin/xhr.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/iframe-tag.http.html.ini deleted file mode 100644 index 9a2b984a0a8..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/img-tag.http.html.ini deleted file mode 100644 index 6b8abb44e0b..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/img-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/script-tag.http.html.ini deleted file mode 100644 index 4ffb4355b3f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/script-tag.http.html.ini +++ /dev/null @@ -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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/xhr.http.html.ini deleted file mode 100644 index c0c4d2fb7cf..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/iframe-tag.http.html.ini deleted file mode 100644 index 92f20e26972..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/img-tag.http.html.ini deleted file mode 100644 index 247aaf51f7a..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/img-tag.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects omitted for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/script-tag.http.html.ini deleted file mode 100644 index 3174d1e228e..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/script-tag.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[script-tag.http.html] - [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 cross-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 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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini deleted file mode 100644 index 08ff988b50a..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/same-origin/xhr.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/iframe-tag.http.html.ini deleted file mode 100644 index 6154178b29f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/img-tag.http.html.ini deleted file mode 100644 index 1aa014c710c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/img-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/script-tag.http.html.ini deleted file mode 100644 index 568462231b7..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/script-tag.http.html.ini +++ /dev/null @@ -1,31 +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 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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini deleted file mode 100644 index b30686cae0c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/xhr.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/iframe-tag.http.html.ini deleted file mode 100644 index 9a2b984a0a8..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/img-tag.http.html.ini deleted file mode 100644 index 6b8abb44e0b..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/img-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/script-tag.http.html.ini deleted file mode 100644 index 4ffb4355b3f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/script-tag.http.html.ini +++ /dev/null @@ -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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/xhr.http.html.ini deleted file mode 100644 index c0c4d2fb7cf..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/iframe-tag.http.html.ini deleted file mode 100644 index 7408079db11..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/iframe-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/img-tag.http.html.ini deleted file mode 100644 index 64bfd8254ac..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/img-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects omitted for img-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/script-tag.http.html.ini deleted file mode 100644 index be04a32349c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/script-tag.http.html.ini +++ /dev/null @@ -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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini deleted file mode 100644 index 283fc71627c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/no-referrer/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/iframe-tag.http.html.ini deleted file mode 100644 index 6154178b29f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/img-tag.http.html.ini deleted file mode 100644 index 1aa014c710c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/img-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/script-tag.http.html.ini deleted file mode 100644 index 568462231b7..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/script-tag.http.html.ini +++ /dev/null @@ -1,31 +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 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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini deleted file mode 100644 index b30686cae0c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin-when-cross-origin/xhr.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/iframe-tag.http.html.ini deleted file mode 100644 index 9a2b984a0a8..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/img-tag.http.html.ini deleted file mode 100644 index 6b8abb44e0b..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/img-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/script-tag.http.html.ini deleted file mode 100644 index 4ffb4355b3f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/script-tag.http.html.ini +++ /dev/null @@ -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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/xhr.http.html.ini deleted file mode 100644 index c0c4d2fb7cf..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/iframe-tag.http.html.ini deleted file mode 100644 index 92f20e26972..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/img-tag.http.html.ini deleted file mode 100644 index 247aaf51f7a..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/img-tag.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects omitted for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/script-tag.http.html.ini deleted file mode 100644 index 3174d1e228e..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/script-tag.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[script-tag.http.html] - [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 cross-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 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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini deleted file mode 100644 index 08ff988b50a..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/same-origin/xhr.http.html.ini +++ /dev/null @@ -1,25 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/iframe-tag.http.html.ini deleted file mode 100644 index 6154178b29f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/img-tag.http.html.ini deleted file mode 100644 index 1aa014c710c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/img-tag.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/script-tag.http.html.ini deleted file mode 100644 index 568462231b7..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/script-tag.http.html.ini +++ /dev/null @@ -1,31 +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 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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini deleted file mode 100644 index b30686cae0c..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin-when-cross-origin/xhr.http.html.ini +++ /dev/null @@ -1,31 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/iframe-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/iframe-tag.http.html.ini deleted file mode 100644 index 9a2b984a0a8..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/iframe-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[iframe-tag.http.html] - [Referrer Policy: Expects origin for iframe-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for iframe-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/img-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/img-tag.http.html.ini deleted file mode 100644 index 6b8abb44e0b..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/img-tag.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[img-tag.http.html] - [Referrer Policy: Expects origin for img-tag to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for img-tag to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/script-tag.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/script-tag.http.html.ini deleted file mode 100644 index 4ffb4355b3f..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/script-tag.http.html.ini +++ /dev/null @@ -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 - diff --git a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/xhr.http.html.ini b/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/xhr.http.html.ini deleted file mode 100644 index c0c4d2fb7cf..00000000000 --- a/tests/wpt/metadata/referrer-policy/gen/srcdoc-inherit.meta/strict-origin/xhr.http.html.ini +++ /dev/null @@ -1,37 +0,0 @@ -[xhr.http.html] - [Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context.] - expected: FAIL - - [Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context.] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc-child.html.ini b/tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc-child.html.ini deleted file mode 100644 index c0f20881f7c..00000000000 --- a/tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc-child.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[iframe-inheritance-srcdoc-child.html] - [iframes srcdoc child correctly inherit the ancestor's referrer policy] - expected: FAIL - diff --git a/tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc.html.ini b/tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc.html.ini deleted file mode 100644 index e7f2f20a202..00000000000 --- a/tests/wpt/metadata/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[iframe-inheritance-srcdoc.html] - [iframes srcdoc correctly inherit the ancestor's referrer policy] - expected: FAIL - From 1b9e84bd4c5110eb5c2383dc33c4021b21b7bc08 Mon Sep 17 00:00:00 2001 From: Utsav Oza Date: Fri, 3 Jul 2020 10:33:07 +0530 Subject: [PATCH 3/3] Ignore errors while setting username/password in strip_url_for_use_as_referrer --- components/net/http_loader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index bc7b83828e8..1c38f303f56 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -248,8 +248,8 @@ fn strip_url_for_use_as_referrer(mut url: ServoUrl, origin_only: bool) -> Option // Step 3-6 { let url = url.as_mut_url(); - url.set_username("").unwrap(); - url.set_password(None).unwrap(); + let _ = url.set_username(""); + let _ = url.set_password(None); url.set_fragment(None); // Note: The result of serializing referrer url should not be // greater than 4096 as specified in Step 6 of