зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1302667 - CSP: Add Parser test for 'worker-src'. r=dveditz,mckinley
This commit is contained in:
Родитель
58b63c1576
Коммит
0de95dd051
|
@ -219,6 +219,10 @@ TEST(CSPParser, Directives)
|
||||||
"script-src 'nonce-foo' 'strict-dynamic' 'unsafe-inline' https:" },
|
"script-src 'nonce-foo' 'strict-dynamic' 'unsafe-inline' https:" },
|
||||||
{ "default-src 'sha256-siVR8' 'strict-dynamic' 'unsafe-inline' https: ",
|
{ "default-src 'sha256-siVR8' 'strict-dynamic' 'unsafe-inline' https: ",
|
||||||
"default-src 'sha256-siVR8' '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);
|
uint32_t policyCount = sizeof(policies) / sizeof(PolicyTest);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче