mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Support Content-Security-Policy http-equiv state on meta element
This commit is contained in:
committed by
Jelle Raaijmakers
parent
59e2416b61
commit
e364443e60
Notes:
github-actions[bot]
2025-05-23 14:40:23 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/e364443e604 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4854 Reviewed-by: https://github.com/gmta ✅
@@ -79,6 +79,13 @@ HTML::SandboxingFlagSet PolicyList::csp_derived_sandboxing_flags() const
|
||||
return HTML::SandboxingFlagSet {};
|
||||
}
|
||||
|
||||
// https://w3c.github.io/webappsec-csp/#enforced
|
||||
void PolicyList::enforce_policy(GC::Ref<Policy> policy)
|
||||
{
|
||||
// A policy is enforced or monitored for a global object by inserting it into the global object’s CSP list.
|
||||
m_policies.append(policy);
|
||||
}
|
||||
|
||||
GC::Ref<PolicyList> PolicyList::clone(GC::Heap& heap) const
|
||||
{
|
||||
auto policy_list = heap.allocate<PolicyList>();
|
||||
|
||||
Reference in New Issue
Block a user