[tor-bugs] #4493 [EFF-HTTPS Everywhere]: Error: found duplicate rule name GoogleMaps

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Jan 8 06:10:01 UTC 2012


#4493: Error: found duplicate rule name GoogleMaps
----------------------------------+-----------------------------------------
 Reporter:  gk                    |          Owner:  pde     
     Type:  defect                |         Status:  accepted
 Priority:  minor                 |      Milestone:          
Component:  EFF-HTTPS Everywhere  |        Version:          
 Keywords:                        |         Parent:          
   Points:                        |   Actualpoints:          
----------------------------------+-----------------------------------------
Changes (by carenas):

 * cc: carenas@… (added)


Comment:

 as shown in the Description of the bug, the problem is not triggered by a
 duplicate default but the fact that there is an extra file which probably
 shouldn't had been packaged in 2.2.1 (named GoogleMaps.xml~HEAD which
 might seem a leftover from a merge conflict) and that has a duplicate rule
 for google maps :

 chrome/content/rules/GoogleMaps.xml~HEAD:
 <ruleset name="GoogleMaps">
         <target host="maps.google.com" />
         <target host="maps.gstatic.com" />
         <target host="maps-api-ssl.google.com"/>
         <target host="maps.googleapis.com"/>
         <target host="maps.google.*"/>
         <target host="maps.google.com.*"/>
         <target host="maps.google.co.*"/>

         <securecookie
 host="^maps\.google\.(com?\.)?(au|ca|gh|ie|in|jm|ke|lk|my|na|ng|nz|pk|rw|sl|sg|ug|uk|za|zw)$"
 name=".*"/>
         <securecookie host="^maps\.(google|gstatic|googleapis)\.com$"
 name=".*"/>
         <securecookie host="^maps-api-ssl\.google\.com$" name=".*"/>

         <rule from="^http://maps\.(google|gstatic|googleapis)\.com/"
 to="https://maps.$1.com/"/>
         <rule from="^http://maps\.google\.([^/]+)/"
 to="https://maps.google.$1/"/>
         <rule from="^http://maps-api-ssl\.google\.com/" to="https://maps-
 api-ssl.google.com/"/>
 </ruleset>

 chrome/content/rules/default.rulesets
 <ruleset name="GoogleMaps">
         <target host="maps.google.com" />
         <target host="maps.gstatic.com" />
         <target host="maps-api-ssl.google.com"/>
         <target host="maps.googleapis.com"/>
         <target host="maps.google.*"/>
         <target host="maps.google.com.*"/>
         <target host="maps.google.co.*"/>

         <securecookie
 host="^maps\.google\.(com?\.)?(au|ca|gh|ie|in|jm|ke|lk|my|na|ng|nz|pk|rw|sl|sg|ug|uk|za|zw)$"
 name=".*"/>
         <securecookie host="^maps\.(google|gstatic|googleapis)\.com$"
 name=".*"/>
         <securecookie host="^maps-api-ssl\.google\.com$" name=".*"/>

         <rule from="^http://maps\.(google|gstatic|googleapis)\.com/"
 to="https://maps.$1.com/"/>
         <rule from="^http://maps\.google\.([^/]+)/"
 to="https://maps.google.$1/"/>
         <rule from="^http://maps-api-ssl\.google\.com/" to="https://maps-
 api-ssl.google.com/"/>
 </ruleset>

 to replicate just download the xpi file from :

   https://www.eff.org/files/https-everywhere-1.2.1.xpi

 and deploy it or inspect at its contents

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4493#comment:10>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list