Skip to content

Commit 148a905

Browse files
committed
Revert "Revert all Google rules to pre-checker version."
This reverts commit a378c6b. This is the first step in the rollforward of refactored Google rulesets: EFForg#1595 Conflicts: src/chrome/content/rules/Google.org.xml src/chrome/content/rules/GoogleVideos.xml src/chrome/content/rules/GoogleWatchBlog.xml
1 parent 6785e83 commit 148a905

17 files changed

+973
-622
lines changed

src/chrome/content/rules/Google-mismatches.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!--
2-
2+
For other Google coverage, see GoogleServices.xml.
3+
34
Problematic domains:
45
56
- (www.)apture.com (works, mismatched, CN: *.google.com)
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
2+
<!--
3+
Disabled by https-everywhere-checker because:
4+
Non-2xx HTTP code: http://cbks0.google.com/ (200) => https://cbks0.google.com/ (404)
5+
Non-2xx HTTP code: http://gg.google.com/ (200) => https://gg.google.com/ (404)
6+
Fetch error: http://ipv6.google.com/ => https://ipv6.google.com/: (7, '')
7+
Non-2xx HTTP code: http://knoll.google.com/ (200) => https://knoll.google.com/ (404)
8+
Non-2xx HTTP code: http://chatenabled.mail.google.com/ (200) => https://chatenabled.mail.google.com/ (404)
9+
Non-2xx HTTP code: http://pack.google.com/ (200) => https://pack.google.com/ (404)
10+
Non-2xx HTTP code: http://sb-ssl.google.com/ (200) => https://sb-ssl.google.com/ (404)
11+
Non-2xx HTTP code: http://suggestqueries.google.com/ (200) => https://suggestqueries.google.com/ (404)
12+
13+
-->
14+
15+
<!--
16+
See Google.com_Subdomains_Complex.html for rules that don't match the simple rule here
17+
For other Google coverage, see GoogleServices.xml
18+
19+
Nonfunctional domains:
20+
21+
- partnerpage.google.com *
22+
- picasa.google.com *
23+
- www.picasa.google.com ²
24+
- safebrowsing.clients.google.com (404, mismatched)
25+
- (www.)googlesyndicatedsearch.com (404; mismatched, CN: google.com)
26+
- buttons.googlesyndication.com *
27+
28+
* 404, valid cert
29+
² 404; mismatched, CN: www.google.com
30+
31+
Problematic domains:
32+
33+
- www.goo.gl (404; mismatched, CN: *.google.com)
34+
35+
- www.news.google.ca ²
36+
37+
- google.com subdomains:
38+
39+
- cbks0 ****
40+
- earth *
41+
- gg ($ 404s)
42+
- knoll *
43+
- scholar **
44+
- trends *
45+
46+
Partially covered domains:
47+
48+
- google.cctld subdomains:
49+
50+
- scholar (→ www)
51+
52+
- google.com subdomains:
53+
54+
- (www.)
55+
- cbks0 ($ 404s)
56+
- gg ($ 404s)
57+
- news (→ www)
58+
- scholar (→ www)
59+
-->
60+
<ruleset name="Google.com Subdomains" default_off='failed ruleset test'>
61+
<target host="admin.google.com" />
62+
<target host="apis.google.com" />
63+
<!-- See the complex ruleset for chart.apis -->
64+
<target host="appengine.google.com" />
65+
<target host="calendar.google.com" />
66+
<target host="cast.google.com" />
67+
<target host="cbks0.google.com" />
68+
<target host="cert-test.sandbox.google.com" />
69+
<target host="checkout.google.com" />
70+
<target host="chrome.google.com" />
71+
<!-- See the complex ruleset for clients\d -->
72+
<!-- See the complex ruleset for *.clients\d -->
73+
<target host="cloud.google.com" />
74+
<target host="code.google.com" />
75+
<!-- See the complex ruleset for codesearch -->
76+
<target host="*.corp.google.com" />
77+
<!-- See the wildcard section -->
78+
<target host="developers.google.com" />
79+
<target host="dl.google.com" />
80+
<target host="docs.google.com" />
81+
<!-- See the complex ruleset for docs\d -->
82+
<!-- See the complex ruleset for \d\.docs -->
83+
<target host="drive.google.com" />
84+
<target host="encrypted.google.com" />
85+
<!-- See the complex ruleset for encrypted-tbn\d -->
86+
<target host="feedburner.google.com" />
87+
<target host="feedproxy.google.com" />
88+
<target host="fiber.google.com" />
89+
<target host="gg.google.com" />
90+
<target host="glass.google.com" />
91+
<target host="goto.google.com" />
92+
<target host="health.google.com" />
93+
<target host="helpouts.google.com" />
94+
<target host="history.google.com" />
95+
<target host="talkgadget.google.com" />
96+
<target host="hostedtalkgadget.google.com" />
97+
<target host="investor.google.com" />
98+
<target host="ipv4.google.com" />
99+
<target host="ipv6.google.com" />
100+
<!-- See GoogleMaps.xml for khms\d? -->
101+
<target host="knol.google.com" />
102+
<target host="knoll.google.com" />
103+
<target host="mail.google.com" />
104+
<target host="chatenabled.mail.google.com" />
105+
<!-- See GoogleMaps.xml for maps -->
106+
<!-- See GoogleMaps.xml for maps-api-ssl -->
107+
<!-- See GoogleMaps.xml for mw2 -->
108+
<target host="pack.google.com" />
109+
<target host="pki.google.com" />
110+
<target host="play.google.com" />
111+
<target host="plus.google.com" />
112+
<target host="plus.sandbox.google.com" />
113+
<target host="plusone.google.com" />
114+
<target host="productforums.google.com" />
115+
<target host="profiles.google.com" />
116+
<target host="safebrowsing-cache.google.com" />
117+
<target host="sb-ssl.google.com" />
118+
<!-- see Google.tld_Subdomains.xml for scholar -->
119+
<target host="script.google.com" />
120+
<target host="security.google.com" />
121+
<target host="services.google.com" />
122+
<target host="sites.google.com" />
123+
<target host="slides.google.com" />
124+
<!-- see GoogleSorry.xml for sorry -->
125+
<target host="spreadsheets.google.com" />
126+
<target host="suggestqueries.google.com" />
127+
<target host="support.google.com" />
128+
<target host="talk.google.com" />
129+
<!-- See the complex ruleset for tbn\d -->
130+
<target host="tools.google.com" />
131+
<target host="wallet.google.com" />
132+
133+
<securecookie host="^(?:\.code|login\.corp|developers|docs|\d\.docs|fiber|mail|plus|\.?productforums|support)\.google\.[\w.]{2,6}$" name=".+" />
134+
135+
<!-- *.corp wildcard -->
136+
<rule from="^http://([\w-]+)\.corp\.google\.com/"
137+
to="https://$1.corp.google.com/" />
138+
<test url="http://login.corp.google.com/" />
139+
<test url="http://ideas.corp.google.com/" />
140+
<test url="http://discovery.corp.google.com/" />
141+
142+
<!-- subdomain to path redirects -->
143+
<rule from="^http://(earth|trends)\.google\.com/"
144+
to="https://www.google.com/$1" />
145+
<test url="http://earth.google.com/" />
146+
<test url="http://trends.google.com/" />
147+
148+
<rule from="^http:"
149+
to="https:" />
150+
</ruleset>
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
2+
<!--
3+
Disabled by https-everywhere-checker because:
4+
Non-2xx HTTP code: http://clients1.google.com/ (200) => https://clients1.google.com/ (404)
5+
Non-2xx HTTP code: http://clients2.google.com/ (200) => https://clients1.google.com/ (404)
6+
Non-2xx HTTP code: http://clients3.google.com/ (200) => https://clients1.google.com/ (404)
7+
Fetch error: http://spreadsheets1.google.com/ => https://spreadsheets1.google.com/: Too many redirects while fetching 'http://spreadsheets1.google.com/'
8+
Fetch error: http://spreadsheets2.google.com/ => https://spreadsheets2.google.com/: Too many redirects while fetching 'http://spreadsheets2.google.com/'
9+
Fetch error: http://spreadsheets3.google.com/ => https://spreadsheets3.google.com/: Too many redirects while fetching 'http://spreadsheets3.google.com/'
10+
Non-2xx HTTP code: http://encrypted-tbn1.google.com/ (200) => https://encrypted-tbn1.google.com/ (404)
11+
Non-2xx HTTP code: http://encrypted-tbn2.google.com/ (200) => https://encrypted-tbn2.google.com/ (404)
12+
Non-2xx HTTP code: http://encrypted-tbn3.google.com/ (200) => https://encrypted-tbn3.google.com/ (404)
13+
Non-2xx HTTP code: http://tbn1.google.com/ (200) => https://encrypted-tbn1.google.com/ (404)
14+
Non-2xx HTTP code: http://tbn2.google.com/ (200) => https://encrypted-tbn2.google.com/ (404)
15+
Non-2xx HTTP code: http://tbn3.google.com/ (200) => https://encrypted-tbn3.google.com/ (404)
16+
Non-2xx HTTP code: http://bar.clients.google.com/ (200) => https://bar.clients.google.com/ (404)
17+
Non-2xx HTTP code: http://foobar.clients.google.com/foobar (200) => https://foobar.clients.google.com/foobar (404)
18+
19+
-->
20+
21+
<!--
22+
Other Google rulesets:
23+
- See Google.com_Subdomains.html for rules that don't match the complex rule here
24+
- See GoogleServices.xml for the list
25+
-->
26+
<ruleset name="Google.com Subdomains (Complex)" default_off='failed ruleset test'>
27+
<target host="*.google.com" />
28+
29+
<rule from="^http://(clients\d)\.google\.com/"
30+
to="https://clients1.google.com/" />
31+
<test url="http://clients1.google.com/" />
32+
<test url="http://clients2.google.com/" />
33+
<test url="http://clients3.google.com/" />
34+
<!--
35+
The need for clients\d -> clients1
36+
37+
"http://clients2.google.com/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1"
38+
HTTP/1.1 200 OK
39+
"https://clients2.google.com/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1"
40+
HTTP/1.1 404 Not Found
41+
"https://clients1.google.com/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1"s
42+
HTTP/1.1 200 OK
43+
-->
44+
<!-- This is needed for OCSP responder to work.
45+
If OCSP checking is set to hard-fail the user-agent might have troubles accessing some HTTPS sites
46+
-->
47+
<exclusion pattern="^http://clients[0-9]\.google\.com/ocsp"/>
48+
<test url="http://clients1.google.com/ocsp" />
49+
<test url="http://clients2.google.com/ocsp" />
50+
<test url="http://clients3.google.com/ocsp" />
51+
52+
<rule from="^http://(docs\d)\.google\.com/"
53+
to="https://$1.google.com/" />
54+
<test url="http://docs1.google.com/" />
55+
<test url="http://docs2.google.com/" />
56+
<test url="http://docs3.google.com/" />
57+
58+
<rule from="^http://(\d\.docs)\.google\.com/"
59+
to="https://$1.google.com/" />
60+
<test url="http://1.docs.google.com/" />
61+
<test url="http://2.docs.google.com/" />
62+
<test url="http://3.docs.google.com/" />
63+
64+
<rule from="^http://(spreadsheets\d)\.google\.com/"
65+
to="https://$1.google.com/" />
66+
<test url="http://spreadsheets1.google.com/" />
67+
<test url="http://spreadsheets2.google.com/" />
68+
<test url="http://spreadsheets3.google.com/" />
69+
70+
<rule from="^http://(?:encrypted-)?tbn(\d)\.google\.com/"
71+
to="https://encrypted-tbn$1.google.com/" />
72+
<test url="http://encrypted-tbn1.google.com/" />
73+
<test url="http://encrypted-tbn2.google.com/" />
74+
<test url="http://encrypted-tbn3.google.com/" />
75+
<test url="http://tbn1.google.com/" />
76+
<test url="http://tbn2.google.com/" />
77+
<test url="http://tbn3.google.com/" />
78+
79+
<rule from="^http://chart\.apis\.google\.com/chart"
80+
to="https://chart.googleapis.com/chart" />
81+
<test url="http://chart.apis.google.com/chart" />
82+
83+
<rule from="^http://([\w-]+)\.clients\.google\.com/"
84+
to="https://$1.clients.google.com/" />
85+
<test url="http://foo.clients.google.com/bar" />
86+
<test url="http://bar.clients.google.com/" />
87+
<test url="http://foobar.clients.google.com/foobar" />
88+
89+
<rule from="^http://codesearch\.google\.com/"
90+
to="https://www.google.com/codesearch/" />
91+
<test url="http://codesearch.google.com/" />
92+
</ruleset>

src/chrome/content/rules/Google.org.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<!--
2-
For other Google coverage, see GoogleServices.xml.
3-
2+
For other Google coverage, see GoogleServices.xml
43
-->
54
<ruleset name="Google.org">
65

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
<!--
3+
For other Google coverage, see GoogleServices.xml
4+
5+
This ruleset is subdomains that exist on google.tld (not just google.com)
6+
7+
*** images.google.tld is covered in GoogleImages.xml ***
8+
-->
9+
<ruleset name="Google.tld Subdomains">
10+
<!--
11+
failure: *.google.* failed: The target host must be a hostname, not URL, and must use at most one wildcard.
12+
-->
13+
<target host="accounts.google.*" />
14+
<target host="adwords.google.*" />
15+
<target host="finance.google.*" />
16+
<target host="groups.google.*" />
17+
<target host="id.google.*" />
18+
<target host="lh2.google.*" />
19+
<target host="lh3.google.*" />
20+
<target host="lh4.google.*" />
21+
<target host="lh5.google.*" />
22+
<target host="lh6.google.*" />
23+
<target host="m.google.*" />
24+
<target host="news.google.*" />
25+
<target host="picasaweb.google.*" />
26+
<target host="scholar.google.*" />
27+
28+
<securecookie host="^(?:accounts|adwords|m|picasaweb)\.google\.[\w.]{2,6}$" name=".+" />
29+
30+
<!-- path that 404 on https but 301 on http -->
31+
<rule from="^http://news\.google\.((?:com?\.)?\w{2,3})/archivesearch"
32+
to="https://news.google.$1/news/advanced_news_search" />
33+
<test url="http://news.google.ca/archivesearch" />
34+
<test url="http://news.google.com/archivesearch" />
35+
<test url="http://news.google.com.au/archivesearch" />
36+
37+
<rule from="^http://(accounts|adwords|finance|groups|id|lh\d|m|news|picasaweb|scholar)\.google\.((?:com?\.)?\w{2,3})/"
38+
to="https://$1.google.$2/" />
39+
<test url="http://accounts.google.ca/" />
40+
<test url="http://accounts.google.com/" />
41+
<test url="http://accounts.google.com.au/" />
42+
<test url="http://adwords.google.ca/" />
43+
<test url="http://adwords.google.com/" />
44+
<test url="http://adwords.google.com.au/" />
45+
<test url="http://finance.google.ca/" />
46+
<test url="http://finance.google.com/" />
47+
<test url="http://finance.google.co.uk/" />
48+
<test url="http://groups.google.ca/" />
49+
<test url="http://groups.google.com/" />
50+
<test url="http://groups.google.com.au/" />
51+
<test url="http://id.google.ca/" />
52+
<test url="http://id.google.com/" />
53+
<test url="http://id.google.com.au/" />
54+
<test url="http://lh3.google.ca/" />
55+
<test url="http://lh4.google.com/" />
56+
<test url="http://lh5.google.com.au/" />
57+
<test url="http://m.google.ca/" />
58+
<test url="http://m.google.com/" />
59+
<test url="http://m.google.com.au/" />
60+
<test url="http://news.google.ca/" />
61+
<test url="http://news.google.com/" />
62+
<test url="http://news.google.com.au/" />
63+
<test url="http://picasaweb.google.ca/" />
64+
<test url="http://picasaweb.google.com/" />
65+
<test url="http://picasaweb.google.com.au/" />
66+
<test url="http://scholar.google.ca/" />
67+
<test url="http://scholar.google.com/" />
68+
<test url="http://scholar.google.com.au/" />
69+
</ruleset>

0 commit comments

Comments
 (0)