mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWeb/CSP: Implement the sandbox directive
This commit is contained in:
committed by
Alexander Kalenik
parent
40bb50ac60
commit
1d57df6e26
Notes:
github-actions[bot]
2025-08-07 17:26:30 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/1d57df6e262 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5765
@@ -22,6 +22,7 @@
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ObjectSourceDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ReportToDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ReportUriDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/SandboxDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ScriptSourceAttributeDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ScriptSourceDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ScriptSourceElementDirective.h>
|
||||
@@ -77,6 +78,9 @@ GC::Ref<Directive> create_directive(GC::Heap& heap, String name, Vector<String>
|
||||
if (name == Names::ReportUri)
|
||||
return heap.allocate<ReportUriDirective>(move(name), move(value));
|
||||
|
||||
if (name == Names::Sandbox)
|
||||
return heap.allocate<SandboxDirective>(move(name), move(value));
|
||||
|
||||
if (name == Names::ScriptSrcAttr)
|
||||
return heap.allocate<ScriptSourceAttributeDirective>(move(name), move(value));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user