Bug 1177298. Add UA overrides for top Japan sites. r=Sebastian
authorMike Taylor <miket@mozilla.com>
Fri, 17 Jul 2015 10:20:00 -0700
changeset 279475 a4d672467b9bb835dc1d3bebc3115d3d48d41342
parent 279474 850d33233360f1a418e26890fa8c3a728be2ccdf
child 279476 b29ec4137962b8d807b88f5f8e8b2fdff23373b1
push id3612
push userpaolo.mozmail@amadzone.org
push dateSat, 18 Jul 2015 18:50:54 +0000
reviewersSebastian
bugs1177298
milestone42.0a1
Bug 1177298. Add UA overrides for top Japan sites. r=Sebastian
mobile/android/app/ua-update.json.in
--- a/mobile/android/app/ua-update.json.in
+++ b/mobile/android/app/ua-update.json.in
@@ -1,9 +1,28 @@
 #filter slashslash
 // Everything after the first // on a line will be removed by the preproccesor.
 // Send these sites a custom user-agent. Bugs should be included with an entry.
 {
   // bug 1174784, youtube.com
   "youtube.com": "Android\\s\\d.+?;#Android;",
   // bug 1184320, gmail.com
-  "mail.google.com": "Android\\s\\d.+?;#Android;"
+  "mail.google.com": "Android\\s\\d.+?;#Android;",
+  // bug 117898, yahoo.co.jp properties
+  "www.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  // send override to m. in addition to www. to prevent infinite 302 loop
+  "m.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  "auctions.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  "finance.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  "news.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  "shopping.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  "sports.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  "travel.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  "weather.yahoo.co.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  // bug 117898, lohaco.jp
+  "lohaco.jp": "Mozilla/5.0 (Linux; Android 5.0.2; Galaxy Nexus Build/IMM76B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36",
+  // bug 117898, www.nhk.or.jp
+  "nhk.or.jp": "\\)\\s# AppleWebKit ",
+  // bug 1177298, uniqlo.com
+  "uniqlo.com": "\\)\\s#) Mobile Safari ",
+  // bug 1177298, mixi.jp
+  "mixi.jp": "\\)\\s#) Mobile Safari ",
 }