mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Add support for CSP v3 "worker-src" directive
This commit is contained in:
parent
7acf20ade3
commit
0665a343a5
23 changed files with 469 additions and 47 deletions
|
|
@ -240,6 +240,10 @@ TEST(CSPParser, Directives)
|
|||
"script-src 'nonce-foo' 'strict-dynamic' 'unsafe-inline' https:" },
|
||||
{ "default-src 'sha256-siVR8' 'strict-dynamic' 'unsafe-inline' https: ",
|
||||
"default-src 'sha256-siVR8' 'unsafe-inline' https:" },
|
||||
{ "worker-src https://example.com",
|
||||
"worker-src https://example.com" },
|
||||
{ "worker-src http://worker.com; frame-src http://frame.com; child-src http://child.com",
|
||||
"worker-src http://worker.com; frame-src http://frame.com; child-src http://child.com" },
|
||||
};
|
||||
|
||||
uint32_t policyCount = sizeof(policies) / sizeof(PolicyTest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue