mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
LibWeb/Fetch: Add missing spec step for checking for tuple origin
Fixes https://github.com/LadybirdBrowser/ladybird/issues/6188
This commit is contained in:
parent
5904694844
commit
4772e1b0c9
Notes:
github-actions[bot]
2025-09-15 07:59:43 +00:00
Author: https://github.com/Lubrsi
Commit: 4772e1b0c9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6192
Reviewed-by: https://github.com/Psychpsyo
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/kennethmyhra
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ void Request::add_origin_header()
|
|||
case ReferrerPolicy::ReferrerPolicy::StrictOriginWhenCrossOrigin:
|
||||
// If request’s origin is a tuple origin, its scheme is "https", and request’s current URL’s scheme is
|
||||
// not "https", then set serializedOrigin to `null`.
|
||||
if (m_origin.has<URL::Origin>() && m_origin.get<URL::Origin>().scheme() == "https"sv && current_url().scheme() != "https"sv)
|
||||
if (m_origin.has<URL::Origin>() && !m_origin.get<URL::Origin>().is_opaque() && m_origin.get<URL::Origin>().scheme() == "https"sv && current_url().scheme() != "https"sv)
|
||||
serialized_origin = MUST(ByteBuffer::copy("null"sv.bytes()));
|
||||
break;
|
||||
// -> "same-origin"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue