mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
LibWeb: Implement EmbedderPolicy struct
This commit is contained in:
parent
f073f8301c
commit
190a419715
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/jamierocks
Commit: 190a419715
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/515
Reviewed-by: https://github.com/awesomekling
8 changed files with 89 additions and 2 deletions
|
@ -358,7 +358,9 @@ bool Request::cross_origin_embedder_policy_allows_credentials() const
|
|||
if (m_client == nullptr)
|
||||
return true;
|
||||
|
||||
// FIXME: 3. If request’s client’s policy container’s embedder policy’s value is not "credentialless", then return true.
|
||||
// 3. If request’s client’s policy container’s embedder policy’s value is not "credentialless", then return true.
|
||||
if (m_policy_container.has<HTML::PolicyContainer>() && m_policy_container.get<HTML::PolicyContainer>().embedder_policy.value != HTML::EmbedderPolicyValue::Credentialless)
|
||||
return true;
|
||||
|
||||
// 4. If request’s origin is same origin with request’s current URL’s origin and request does not have a redirect-tainted origin, then return true.
|
||||
// 5. Return false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue