Bug 1075230 - CSP: Test enforcment for scheme-wildcard combination (r=sstamm)

This commit is contained in:
Christoph Kerschbaumer 2014-10-01 05:01:41 -07:00
parent 0d523437b3
commit 0f08d109d4
2 changed files with 3 additions and 0 deletions

View File

@ -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",

View File

@ -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/"],