mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
LibWeb/CSP: Implement the report-to directive
This doesn't do anything by itself, the report a violation algorithm will handle this directive itself.
This commit is contained in:
parent
ed0230bb93
commit
855e17529c
Notes:
github-actions[bot]
2025-08-07 17:26:50 +00:00
Author: https://github.com/Lubrsi
Commit: 855e17529c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5765
5 changed files with 49 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <LibWeb/ContentSecurityPolicy/Directives/MediaSourceDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/Names.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ObjectSourceDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ReportToDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ReportUriDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ScriptSourceAttributeDirective.h>
|
||||
#include <LibWeb/ContentSecurityPolicy/Directives/ScriptSourceDirective.h>
|
||||
|
@ -69,6 +70,9 @@ GC::Ref<Directive> create_directive(GC::Heap& heap, String name, Vector<String>
|
|||
if (name == Names::ObjectSrc)
|
||||
return heap.allocate<ObjectSourceDirective>(move(name), move(value));
|
||||
|
||||
if (name == Names::ReportTo)
|
||||
return heap.allocate<ReportToDirective>(move(name), move(value));
|
||||
|
||||
if (name == Names::ReportUri)
|
||||
return heap.allocate<ReportUriDirective>(move(name), move(value));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue