Bug 1170375 - Add 4th batch of top .jp sites to CSS unprefixing service whitelists. r=dholbert
authorMike Taylor <miket@mozilla.com>
Mon, 08 Jun 2015 21:26:00 -0400
changeset 247723 f39cc73b483bfe3afd4f9b6e97aadede2e987745
parent 247722 cb6c32d220d2f8c1e149f6b90ddf9270917931d0
child 247724 65c5e6a29c060eeb0b6e49bece02ae85266bfec9
push id60783
push userryanvm@gmail.com
push dateTue, 09 Jun 2015 18:28:02 +0000
treeherdermozilla-inbound@8999e3228a19 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1170375
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1170375 - Add 4th batch of top .jp sites to CSS unprefixing service whitelists. r=dholbert
caps/nsPrincipal.cpp
--- a/caps/nsPrincipal.cpp
+++ b/caps/nsPrincipal.cpp
@@ -455,27 +455,30 @@ IsOnFullDomainWhitelist(nsIURI* aURI)
     NS_LITERAL_CSTRING("cdn.kuaidi100.com"), // for m.kuaidi100.com
     NS_LITERAL_CSTRING("m.pc6.com"),
     NS_LITERAL_CSTRING("m.haosou.com"),
     NS_LITERAL_CSTRING("m.mi.com"),
     NS_LITERAL_CSTRING("wappass.baidu.com"),
     NS_LITERAL_CSTRING("m.video.baidu.com"),
     NS_LITERAL_CSTRING("m.video.baidu.com"),
     NS_LITERAL_CSTRING("imgcache.gtimg.cn"), // for m.v.qq.com
+    NS_LITERAL_CSTRING("s.tabelog.jp"),
+    NS_LITERAL_CSTRING("s.yimg.jp"), // for s.tabelog.jp
     NS_LITERAL_CSTRING("i.yimg.jp"), // for *.yahoo.co.jp
     NS_LITERAL_CSTRING("ai.yimg.jp"), // for *.yahoo.co.jp
+    NS_LITERAL_CSTRING("m.finance.yahoo.co.jp"),
     NS_LITERAL_CSTRING("daily.c.yimg.jp"), // for sp.daily.co.jp
     NS_LITERAL_CSTRING("stat100.ameba.jp"), // for ameblo.jp
     NS_LITERAL_CSTRING("user.ameba.jp"), // for ameblo.jp
     NS_LITERAL_CSTRING("www.goo.ne.jp"),
-    NS_LITERAL_CSTRING("s.tabelog.jp"),
     NS_LITERAL_CSTRING("x.gnst.jp"), // for mobile.gnavi.co.jp
     NS_LITERAL_CSTRING("c.x.gnst.jp"), // for mobile.gnavi.co.jp
     NS_LITERAL_CSTRING("www.smbc-card.com"),
     NS_LITERAL_CSTRING("static.card.jp.rakuten-static.com"), // for rakuten-card.co.jp
+    NS_LITERAL_CSTRING("img.travel.rakuten.co.jp"), // for travel.rakuten.co.jp
     NS_LITERAL_CSTRING("img.mixi.net"), // for mixi.jp
     NS_LITERAL_CSTRING("girlschannel.net"),
     NS_LITERAL_CSTRING("www.fancl.co.jp"),
     NS_LITERAL_CSTRING("s.cosme.net"),
     NS_LITERAL_CSTRING("www.sapporobeer.jp"),
     NS_LITERAL_CSTRING("www.mapion.co.jp"),
     NS_LITERAL_CSTRING("touch.navitime.co.jp"),
     NS_LITERAL_CSTRING("sp.mbga.jp"),
@@ -483,23 +486,24 @@ IsOnFullDomainWhitelist(nsIURI* aURI)
     NS_LITERAL_CSTRING("www.ntv.co.jp"),
     NS_LITERAL_CSTRING("mobile.suntory.co.jp"), // for suntory.jp
     NS_LITERAL_CSTRING("www.aeonsquare.net"),
     NS_LITERAL_CSTRING("mw.nikkei.com"),
     NS_LITERAL_CSTRING("www.nhk.or.jp"),
     NS_LITERAL_CSTRING("www.tokyo-sports.co.jp"),
     NS_LITERAL_CSTRING("www.bellemaison.jp"),
     NS_LITERAL_CSTRING("www.kuronekoyamato.co.jp"),
-    NS_LITERAL_CSTRING("s.tsite.jp"),
     NS_LITERAL_CSTRING("formassist.jp"), // for orico.jp
     NS_LITERAL_CSTRING("sp.m.reuters.co.jp"),
     NS_LITERAL_CSTRING("www.atre.co.jp"),
     NS_LITERAL_CSTRING("www.jtb.co.jp"),
     NS_LITERAL_CSTRING("www.sharp.co.jp"),
     NS_LITERAL_CSTRING("www.biccamera.com"),
+    NS_LITERAL_CSTRING("weathernews.jp"),
+    NS_LITERAL_CSTRING("cache.ymail.jp"), // for www.yamada-denkiweb.com
   };
   static const size_t sNumFullDomainsOnWhitelist =
     MOZ_ARRAY_LENGTH(sFullDomainsOnWhitelist);
 
   // Skip 0th (dummy) entry in whitelist, unless a pref is enabled.
   const size_t firstWhitelistIdx = IsWhitelistingTestDomains() ? 0 : 1;
 
   for (size_t i = firstWhitelistIdx; i < sNumFullDomainsOnWhitelist; ++i) {
@@ -519,16 +523,17 @@ IsOnBaseDomainWhitelist(nsIURI* aURI)
   static const nsLiteralCString sBaseDomainsOnWhitelist[] = {
     // 0th entry only active when testing:
     NS_LITERAL_CSTRING("test2.example.org"),
     NS_LITERAL_CSTRING("tbcdn.cn"), // for m.taobao.com
     NS_LITERAL_CSTRING("alicdn.com"), // for m.taobao.com
     NS_LITERAL_CSTRING("dpfile.com"), // for m.dianping.com
     NS_LITERAL_CSTRING("hao123img.com"), // for hao123.com
     NS_LITERAL_CSTRING("tabelog.k-img.com"), // for s.tabelog.com
+    NS_LITERAL_CSTRING("tsite.jp"), // for *.tsite.jp
   };
   static const size_t sNumBaseDomainsOnWhitelist =
     MOZ_ARRAY_LENGTH(sBaseDomainsOnWhitelist);
 
   nsCOMPtr<nsIEffectiveTLDService> tldService =
     do_GetService(NS_EFFECTIVETLDSERVICE_CONTRACTID);
 
   if (tldService) {