Closed Bug 875098 Opened 7 years ago Closed 6 years ago is displayed poorly in Browser


(Web Compatibility :: Mobile, defect)

Gonk (Firefox OS)
Not set


(Not tracked)



(Reporter: mikeh, Assigned: karlcow)




(Whiteboard: [country-ca][sitewait][serversniff])


(2 files)

The Globe and Mail is Canada's paper of record, and its mobile site shows up horribly in the b2g browser.

1. open Browser app
2. go to -- will redirect to

Expected result: display parity with other smartphones.

Observed results: see attached screen shots.
The headlines are all jumbled together, separator lines are missing, and (not shown) photos which should appear left-aligned are all over the place.
They appear to be doing some kind of browser sniffing and sending a "fallback" version for Firefox OS which doesn't work properly.

For example, if I load in desktop Firefox the body tag looks like:

<body class="news smartphone other notouch">

and it renders fine.

If I load it in the B2G Simulator, the body tag looks like:

<body class="news fallback other notouch">

There appears to be no CSS rendered and I see a JavaScript error.

I don't think it's just based on UA string because if I spoof my UA string in desktop Firefox I still get the same version, they must be doing some other form of sniffing?
Assignee: nobody → english-other
Component: Gaia::Browser → English Other
Product: Boot2Gecko → Tech Evangelism
As an extra data-point, my BlackBerry (running OS 7.1 which has a WebKit-based browser) renders the page properly.
Moving this to Mobile, nobody is really paying attention to these language components (AFAIK).
Assignee: english-other → nobody
Component: English Other → Mobile
Apparently they're doing some server-side detection that fails to recognize Firefox OS devices as mobile:

Selected response headers for Firefox OS:
Response for: 'Mozilla/5.0 (Mobile; rv:18.1) Gecko/18.1 Firefox/18.1'
Response Status: 301

Selected response headers for Firefox for Android:
Response for: 'Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0'
Response Status: 302

The suggested fix would be to send Firefox OS to the same location as Firefox for Android.
Whiteboard: [country-ca][contactready][serversniff]
asking a friend.
Trying to contact a Web developer at Globe And Mail
Assignee: nobody → kdubost
Whiteboard: [country-ca][contactready][serversniff] → [country-ca][sitewait][serversniff]
This has been FIXED.
Thanks to the Globe And Mail team.
Closed: 6 years ago
Resolution: --- → FIXED
So there is a regression. Firefox OS receives again the desktop site.
Let deal with this on
instead of here.  I keep here closed.
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.