Closed
Bug 969842
Opened 10 years ago
Closed 7 years ago
welt.de sends desktop site to Firefox OS and Firefox on Android
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: sezen.guenes, Unassigned)
References
()
Details
(Whiteboard: [country-de][serversniff][contactready])
Attachments
(1 file)
372.53 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release) Build ID: 20140205162153 Steps to reproduce: I visited welt.de with Firefox OS. Actual results: I got a Desktop Website. Expected results: I expected a Mobile Website.
Comment 1•10 years ago
|
||
description |
Welt.de fails to detect Firefox OS devices as smartphones. This script: http://js.welt.de/skins/welt/js/413/script.end.min.js contains some logic to either redirect or show a "switch to mobile site" banner. This code is in the section that starts with var mSwitchPattern = /(ASMobileSwitch=)/g; var mDevicePattern = /(mdr_browser=)/g; var mChoosePattern = /(ASwwwfirst=)/g; if (mSwitchPattern.test(document.cookie) == true) { if (mDevicePattern.test(document.cookie) == true) { if ($.cookie('mdr_browser') == 'mobile') { The mdr_browser cookie seems to be set by backend browser sniffing that classifies all browsers named "Firefox" as "desktop".
URL: http://welt.de
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: welt.de sends desktop site to Firefox OS → welt.de sends desktop site to Firefox OS and Firefox on Android
Whiteboard: [country-de][serversniff][contactready]
Comment 2•10 years ago
|
||
suggestedfix |
The backend code that sets the mdr_browser cookie should be tweaked so that it recognises that User-Agent strings containing the word "Mobile" (or just "Mobi" - this would also fix the site in Opera Mini) is a mobile browser.
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Testing out bug 1028696. I get the mobile site on Android for me. Can anyone else confirm? I haven't tried FxOS.
Comment 5•10 years ago
|
||
No, just trying to load welt.de still gives me desktop content.
Comment 6•8 years ago
|
||
In accordance to https://groups.google.com/d/msg/mozilla.compatibility/OHsR590ExWs/W3ohc41tFAAJ Requalifying the bug, the issue is happening on Firefox Android too.
OS: All → Android
Hardware: All → ARM
Comment 7•7 years ago
|
||
I get a responsive site now. Looks good.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•5 years ago
|
Product: Tech Evangelism → Web Compatibility
Assignee | ||
Updated•2 months ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•