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 249347 024b2dc1720f8777dca89fd570d16db7dad0c37f
parent 249346 1bbeed92ac700c374665f9adbbbfee8c68a55aa8
child 249348 b26a6a484fe279062a5fceee6727d6a8226d2a36
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssstamm, sledru
bugs1122445
milestone37.0a2
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
@@ -505,24 +505,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(enum CSPKeyword aKeyword)
 {
   NS_ASSERTION((aKeyword != CSP_SELF),
                "'self' should have been replaced in the parser");