Thanks Google?

10 Jan 2014

One of the bug challenges of mobile web compatibility is getting served the appropriate mobile content, usually because you're dealing with legacy software that doesn't know about $YOUR_MOBILE_BROWSERS_USER_AGENT_STRING.

Take, fine purveyor of New Jersey Governor Chris Christie bridge scandal reporting, as an example.

Firefox for Android:

$ http --print=Hh GET User-Agent:"$FFA"
GET / HTTP/1.1
User-Agent: Mozilla/5.0 (Android; Mobile; rv:26.0) Gecko/26.0 Firefox/26.0

HTTP/1.0 302 Found

Firefox OS:

$ http --print=Hh GET User-Agent:"$FFOS"
GET / HTTP/1.1
User-Agent: Mozilla/5.0 (Mobile; rv:18.1) Gecko/18.1 Firefox/18.1

HTTP/1.1 200 OK
Blah: blah blah

So you can see that NYDailyNews somehow knows that Firefox for Android is a mobile browser and redirects it to the m-dot site, while Firefox OS get the regular desktop content.

Not the end of the world, but not ideal (Bug 957701 describes what is likely an OOM tab crash as a result).

(OK, so why are you even blogging about this Mike, it happens everywhere, you're probably thinking to yourself.)

This week I've started to notice that if you click on search results from in the Firefox OS browser, they'll automatically send you to the mobile site. The link for the first result for "nydailynews" is actually

It seems like Google is sending mobile users directly to the mobile site if it a) knows you're on a mobile device, and b) it knows about a mobile site. I've noticed this on, and as well. Thanks Google?