mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Create policy containers from responses and then run CSP init
This allows us to parse the Content-Security-Policy header and Referrer-Policy header from navigation responses and actually allow them to start having an effect.
This commit is contained in:
parent
435f839ced
commit
819bff9ec0
Notes:
github-actions[bot]
2025-03-13 15:20:26 +00:00
Author: https://github.com/Lubrsi
Commit: 819bff9ec0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3805
8 changed files with 113 additions and 6 deletions
|
@ -97,6 +97,9 @@ public:
|
|||
|
||||
bool is_closing() const { return m_closing; }
|
||||
|
||||
void initialize_policy_container(GC::Ref<Fetch::Infrastructure::Response const> response, GC::Ref<EnvironmentSettingsObject> environment);
|
||||
[[nodiscard]] ContentSecurityPolicy::Directives::Directive::Result run_csp_initialization() const;
|
||||
|
||||
protected:
|
||||
explicit WorkerGlobalScope(JS::Realm&, GC::Ref<Web::Page>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue