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 332563 cf65390f5764649ce8736d2a66b798f293a579a1
parent 332562 b7dc3515dc78bbb77c1191b4d5d5ee05668fd6cf
child 332564 5b08ae92f655c5ba6f2c356ab43e323a3ab0cf8c
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdveditz
bugs1289085
milestone50.0a1
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 ========================