Closed Bug 843176 Opened 11 years ago Closed 10 years ago

tylted.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)

RESOLVED WONTFIX

People

(Reporter: lmandel, Assigned: karlcow)

References

()

Details

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

tylted.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: tylted.com
Whiteboard: [uaoverride]
This bug is quite interesting. 
With the UA override, we are receiving the site. 
Once we removed the UA override, the site is blank. 


→ http GET http://tylted.com/ User-Agent:'Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0' 

HTTP/1.1 302 Object moved
Cache-Control: private
Connection: Keep-alive
Content-Length: 145
Content-Type: text/html; Charset=utf-8
Date: Fri, 12 Jul 2013 19:01:21 GMT
Keep-Alive: timeout=15, max=100
Location: /games.asp?v=2pOMdOkZA00
Server: Microsoft-IIS/7.5
Set-Cookie: CUFID=2pOMdOkZA00%7C; expires=Thu, 01-Aug-2013 04:00:00 GMT; path=/
Set-Cookie: CUFDEVICE=426496%7C240%7C0%7C%7C%7C%7CTABLET; path=/
Set-Cookie: ASPSESSIONIDCCTRBRBR=CPHFJIKDNKGADOLNIGFPMCLN; path=/
Via: 1.1 ID-0000627501223562 uproxy-2
X-Powered-By: ASP.NET

<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="/games.asp?v=2pOMdOkZA00">here</a>.</body>

The code after game is just a tracking code in the URI. First interesting hint, there is a cookie for device information, which seems to identify the device as a Tablet.

> Set-Cookie: CUFDEVICE=426496%7C240%7C0%7C%7C%7C%7CTABLET; path=/

url decoded: 426496|240|0||||TABLET

Let's see :) We make an http request with a Desktop Firefox UA string.

→ http GET http://tylted.com/ User-Agent:'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:22.0) Gecko/20100101 Firefox/22.0' 


> Set-Cookie: CUFDEVICE=33024%7C480%7C480%7CWEB%7CFirefox%7C22%7CWEB; path=/

url decoded: 33024|480|480|WEB|Firefox|22|WEB

OK It seems logical.  With Firefox for Mobile

→ http HEAD http://tylted.com/  User-Agent:'Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0' 


> Set-Cookie: CUFDEVICE=508418%7C240%7C0%7CAndroid%7C%7C%7CTABLET; path=/

url decoded: 508418|240|0|Android|||TABLET

And finally with a Chrome on Galaxy

→ http GET http://tylted.com/  User-Agent:'Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19' 

> Set-Cookie: CUFDEVICE=115714%7C720%7C1280%7CAndroid%7CSamsung%7Ci515%7CSMARTPHONE; path=/

url decoded: 115714|720|1280|Android|Samsung|i515|SMARTPHONE

This specific cookie name doesn't seem to belong to a common detection framework, but that might be just the choice of the Web developers. But it is clearly displaying a very detailed and precise detection algorithm.
Whiteboard: [uaoverride] → [uaoverride] [country-us] [serversniff]
Sent them an email on their support email address found in the FAQ.
The whois provides an email address and a  name: Kevin Cahill
I'll try this after. http://cellufun.com/ is basically the same site.
Whiteboard: [uaoverride] [country-us] [serversniff] → [uaoverride] [country-us] [serversniff] [sitewait]
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
They replied.

>Hello Karl,  we have been serving mobile content to different browsers since 2006 so have a complex algorithm for detecting mobile devices.  Can you explain the issue? Also, we don't use the Tylted domain any longer, it's depreciated in most places, and have gone back to the original m.cellfun.com domain.
I have given more context
sent a reminder
I get an error message saying "Well, this is embarassing. We tried to display this Web page, but it's not responding."

Firefox OS
→ http --print hH GET http://tylted.com/games.asp?v=14wJrvl4vM0 "User-Agent:$FOSUA" | grep -i cufdevice
Set-Cookie: CUFDEVICE=426496%7C240%7C0%7C%7C%7C%7CTABLET; path=/

Firefox Android
→ http --print hH GET http://tylted.com/games.asp?v=14wJrvl4vM0 "User-Agent:$FANUA" | grep -i Cookie
Set-Cookie: CUFDEVICE=508418%7C240%7C0%7CAndroid%7C%7C%7CTABLET; path=/

Safari iOS
→ http --print hH GET http://tylted.com/games.asp?v=14wJrvl4vM0 "User-Agent:$APHUA" | grep -i Cookie
Set-Cookie: CUFDEVICE=50180%7C320%7C372%7CiPhone%7CApple%7CiPhone%7CSMARTPHONE; path=/


Still exists
http://tylted.com/games.asp

And sends the same content than http://cellufun.com/games.asp


I propose we remove the UA override given that the owner is saying that the domain is deprecated. 

Also on Alexa
     cellufun.com has a rank of 379,141 
and  tylted.com 1,551,325 

I don't think we should spend a lot more time on time. I'm closing it right now as WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Blocks: 948642
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.