mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1075230 - CSP: Test enforcment for scheme-wildcard combination (r=sstamm)
This commit is contained in:
parent
0d523437b3
commit
0f08d109d4
@ -376,6 +376,8 @@ nsresult TestSimplePolicies() {
|
||||
"default-src *" },
|
||||
{ "default-src https:",
|
||||
"default-src https:" },
|
||||
{ "default-src https://*",
|
||||
"default-src https://*" },
|
||||
{ "default-src *:*",
|
||||
"default-src http://*:*" },
|
||||
{ "default-src *:80",
|
||||
|
@ -24,6 +24,7 @@ SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var policies = [
|
||||
["allowed", "*"],
|
||||
["allowed", "http://*"], // test for bug 1075230, enforcing scheme and wildcard
|
||||
["allowed", "test1.example.com"],
|
||||
["allowed", "test1.example.com/"],
|
||||
["allowed", "test1.example.com/tests/content/base/test/csp/"],
|
||||
|
Loading…
Reference in New Issue
Block a user