LibWeb/CSP: Implement SecurityPolicyViolationEvent

This is used to report violations of policies to the element/global
object that caused it.
This commit is contained in:
Luke Wilde 2024-11-26 15:43:02 +00:00 committed by Alexander Kalenik
commit 02236be737
Notes: github-actions[bot] 2025-03-18 23:56:31 +00:00
9 changed files with 168 additions and 0 deletions

View file

@ -4501,6 +4501,7 @@ static void generate_using_namespace_definitions(SourceGenerator& generator)
// FIXME: This is a total hack until we can figure out the namespace for a given type somehow.
using namespace Web::Animations;
using namespace Web::Clipboard;
using namespace Web::ContentSecurityPolicy;
using namespace Web::CredentialManagement;
using namespace Web::Crypto;
using namespace Web::CSS;

View file

@ -16,6 +16,7 @@ static constexpr Array libweb_interface_namespaces = {
"CSS"sv,
"Clipboard"sv,
"Compression"sv,
"ContentSecurityPolicy"sv,
"Crypto"sv,
"DOM"sv,
"DOMURL"sv,