Bug 1289085: CSP - Test referrer with no valid src. r=dveditz
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Fri, 29 Jul 2016 22:53:59 +0200
changeset 347529 cf65390f5764649ce8736d2a66b798f293a579a1
parent 347528 b7dc3515dc78bbb77c1191b4d5d5ee05668fd6cf
child 347530 5b08ae92f655c5ba6f2c356ab43e323a3ab0cf8c
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdveditz
bugs1289085
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1289085: CSP - Test referrer with no valid src. r=dveditz
dom/security/test/TestCSPParser.cpp
--- a/dom/security/test/TestCSPParser.cpp
+++ b/dom/security/test/TestCSPParser.cpp
@@ -544,16 +544,17 @@ nsresult TestBadPolicies() {
   static const PolicyTest policies[] =
   {
     { "script-sr 'self", "" },
     { "", "" },
     { "; ; ; ; ; ; ;", "" },
     { "defaut-src asdf", "" },
     { "default-src: aaa", "" },
     { "asdf http://test.com", ""},
+    { "referrer", ""},
   };
 
   uint32_t policyCount = sizeof(policies) / sizeof(PolicyTest);
   return runTestSuite(policies, policyCount, 0);
 }
 
 // ============================= TestGoodGeneratedPolicies ========================