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)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sezen.guenes, Unassigned)

References

()

Details

(Whiteboard: [country-de][serversniff][contactready])

Attachments

(1 file)

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.
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".
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]
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.
Testing out bug 1028696. I get the mobile site on Android for me. Can anyone else confirm?

I haven't tried FxOS.
No, just trying to load welt.de still gives me desktop content.
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
I get a responsive site now. Looks good.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
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: