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 349599 cf65390f5764649ce8736d2a66b798f293a579a1
parent 349598 b7dc3515dc78bbb77c1191b4d5d5ee05668fd6cf
child 349600 5b08ae92f655c5ba6f2c356ab43e323a3ab0cf8c
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [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 ========================