Closed Bug 843154 Opened 12 years ago Closed 11 years ago

nba.com doesn't recognize B2G UA as mobile

Categories

(Web Compatibility :: Site Reports, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lmandel, Assigned: karlcow)

References

()

Details

(Whiteboard: [uaoverride] [country-all] [sitewait] [serversniff])

Attachments

(1 file)

nba.com serves a desktop site to B2G. Bug 823364 added an UA override for this domain. The override should be removed once the domain serves mobile content to B2G. This bug tracks the evangelism for the site to recognize the B2G UA and the removal of the override at that time.
Blocks: nba.com
URL: nba.com
Whiteboard: [uaoverride]
Whiteboard: [uaoverride] → [uaoverride] [country-all]
On iPod Touch, the http://nba.com/ is redirected to http://mi.nba.com/_touch/ On Firefox for Android, to the desktop site http://www.nba.com/ On Firefox OS (ZTE) with or without UA override, to the desktop site http://www.nba.com/ So I propose we remove the UA override, because it doesn't change anything and we try to solve the issue properly with people at nba.com.
Interesting. When I tested this several months back nba.com served a mobile site to Fennec. Seems like they've made a site change.
Safari + iPod -> Mobile site Opera Mobile + Android -> Mobile site Firefox + Android -> Desktop site Opera Mini + Android -> Desktop site Firefox OS + ZTE -> Desktop site To be contacted so that every mobile devices are being sent to the mobile site. # Firefox OS GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nba.com User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.0 200 OK Cache-Control: max-age=1 Connection: keep-alive Content-Encoding: gzip Content-Length: 18612 Content-Type: text/html;charset=UTF-8 Date: Thu, 22 Aug 2013 16:47:58 GMT Expires: Thu, 22 Aug 2013 16:47:59 GMT Server: nginx Vary: User-Agent Vary: Accept-Encoding Vary: User-Agent X-UA-Device: desktop X-UA-Profile: desktop # Firefox for Android GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nba.com User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.0 200 OK Cache-Control: max-age=52 Connection: keep-alive Content-Encoding: gzip Content-Length: 18612 Content-Type: text/html;charset=UTF-8 Date: Thu, 22 Aug 2013 16:48:07 GMT Expires: Thu, 22 Aug 2013 16:48:59 GMT Server: nginx Vary: User-Agent Vary: Accept-Encoding X-UA-Device: desktop X-UA-Profile: desktop # Apple iPhone GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nba.com User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3 HTTP/1.0 302 Moved Temporarily Cache-Control: max-age=2 Connection: keep-alive Content-Length: 153 Content-Type: text/html Date: Thu, 22 Aug 2013 16:48:55 GMT Expires: Thu, 22 Aug 2013 16:48:57 GMT Location: http://mi.nba.com/ Server: nginx Vary: User-Agent Vary: Accept-Encoding Vary: User-Agent X-UA-Device: mobile X-UA-Profile: desktop # Opera Mobile GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nba.com User-Agent: Opera/12.02 (Android 4.1; Linux; Opera Mobi/ADR-1111101157; U; en-US) Presto/2.9.201 Version/12.02 HTTP/1.0 302 Moved Temporarily Cache-Control: max-age=32 Connection: keep-alive Content-Length: 153 Content-Type: text/html Date: Thu, 22 Aug 2013 16:49:25 GMT Expires: Thu, 22 Aug 2013 16:49:57 GMT Location: http://mi.nba.com/ Server: nginx Vary: User-Agent Vary: Accept-Encoding Vary: User-Agent X-UA-Device: mobile X-UA-Profile: iphone # Opera Mini GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nba.com User-Agent: Opera/9.80 (Android; Opera Mini/7.29530/27.1407; U; en) Presto/2.8.119 Version/11.10 HTTP/1.0 200 OK Cache-Control: max-age=60 Connection: keep-alive Content-Encoding: gzip Content-Length: 18612 Content-Type: text/html;charset=UTF-8 Date: Thu, 22 Aug 2013 16:49:58 GMT Expires: Thu, 22 Aug 2013 16:50:58 GMT Server: nginx Set-Cookie: CG=US:--:--; path=/ Set-Cookie: CG=US:--:--; path=/ Set-Cookie: CG=US:--:--; path=/ Set-Cookie: CG=US:--:--; path=/ Set-Cookie: CG=US:--:--; path=/ Vary: User-Agent Vary: Accept-Encoding X-UA-Device: desktop X-UA-Profile: desktop
if we have successful contacts with CNN maybe we could get help here too. "NBA.com is part of Turner Sports Digital, part of the Turner Sports & Entertainment Digital Network." Though not sure how much the teams are related. No issues on the browser support front http://www.nba.com/help/site_faq.html#browser First attempt http://twitter.com/MozWebCompat/status/370606356266774528
Assignee: nobody → kdubost
Whiteboard: [uaoverride] [country-all] → [uaoverride] [country-all] [sitewait] [serversniff]
Status: NEW → ASSIGNED
I met someone (Jenn Schiffer) at the jQuery conference yesterday who works for NBA.com (specifically working on frontend). Will get her email and point her in the direction of this bug.
Hi, Jenn Schiffer forwarded this to me. I'm going to request that we update the tests for the user agent strings to support firefox and opera mobile.
edit: i work with her in web development at the NBA
Nicholas, That's very good news. Thanks a lot.
Karl, no problem whatsoever. Regarding the UA for Firefox OS, do you know if the substring "Mozilla/5.0 (Mobile;" would be sufficient to correctly detect phones running Firefox OS? So, just FYI, Turner handles US traffic for nba.com and the US mobile version of the site, for international traffic to NBA.com, smartphones should be redirected to http://mi.nba.com. The Int Mobile site (mi.nba.com) is developed and managed directly by us at the NBA. Int Mobile bounces out any US traffic back to NBA.com, regardless of device. But if you are international on a supported device you should be taken to http://mi.nba.com/_touch. We'll be making an update shortly to our device detection code to support these devices. Turner is aware of the issue but I don't know when it'll be resolved or if I'll even get notification that it was. If you'd like to email me directly, you can get me at nortenzio@nba.com Thanks nicholas ortenzio
Attached image wap-touch.png
WAP and Touch screenshot
are you being forwarded to the wap site?
Usually we recommend to just do: /mobi/i That way you will catch most of the mobile browsers. Some browsers have just the Mobi string. So "mobi" substring, lowercase. "Opera/9.80 (Android 2.3.6; Linux; Opera Mobi/ADR-1203051651; U; pt-BR) Presto/2.10.254 Version/12.00" "Opera/9.80 (Linux armv7l; Opera Mobi/1; MeeGo) Presto/2.11.355 Version/12.10" If you want to send the desktop version to an ipad you can filter out "/ipad/". An example of Mobile + ipad "Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) CriOS/28.0.1500.16 Mobile/9B206 Safari/7534.48.3" So I looked at the two version. One is very simplified and seems to be designed for WAP mobile and the other seems to have more work on typo and stuff If I enter directly http://mi.nba.com/ on Firefox OS with the UA override in place. I access the /_touch/ part of the site. When UA override is removed, I access the wap version. When UA override is removed, and I access http://mi.nba.com/_touch/ I'm getting the /_touch/ version. Luckily no additional redirection. testing a few pages and it is working well. So the /_touch/ seems the happy place for Firefox OS. Thanks Nicholas. Happy to see this moving forward. Thanks to Mike and Jenn too.
(In reply to nicholas.ortenzio from comment #11) > are you being forwarded to the wap site? So far entering nba.com without UA override leads us to http://www.nba.com/ Still no redirection in place. Above I was testing for accessing the mobile domain which is indeed redirecting to the wap instead of the touch.
This is fixed. Firefox OS on ZTE receives the touch version. Thanks a lot Mike and Nicholas. \o/
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 923442
verified by the site testing extension :)
Status: RESOLVED → VERIFIED
No longer blocks: 923442
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: