Bug 1122445 - CSP: don't normalize path for CSP checks. r=sstamm, a=sledru
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Wed, 21 Jan 2015 13:48:03 -0800
changeset 242979 7f32601dd394
parent 242978 a9b183f77f8d
child 242980 a41c84bee024
push id4353
push userryanvm@gmail.com
push date2015-01-22 18:19 +0000
treeherdermozilla-beta@a41c84bee024 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssstamm, sledru
bugs1122445
milestone36.0
Bug 1122445 - CSP: don't normalize path for CSP checks. r=sstamm, a=sledru
dom/security/nsCSPUtils.cpp
--- a/dom/security/nsCSPUtils.cpp
+++ b/dom/security/nsCSPUtils.cpp
@@ -453,24 +453,22 @@ nsCSPHostSrc::setScheme(const nsAString&
   ToLowerCase(mScheme);
   mAllowHttps = aAllowHttps;
 }
 
 void
 nsCSPHostSrc::setPort(const nsAString& aPort)
 {
   mPort = aPort;
-  ToLowerCase(mPort);
 }
 
 void
 nsCSPHostSrc::appendPath(const nsAString& aPath)
 {
   mPath.Append(aPath);
-  ToLowerCase(mPath);
 }
 
 /* ===== nsCSPKeywordSrc ===================== */
 
 nsCSPKeywordSrc::nsCSPKeywordSrc(CSPKeyword aKeyword)
 {
   NS_ASSERTION((aKeyword != CSP_SELF),
                "'self' should have been replaced in the parser");