Closed Bug 1038151 Opened 10 years ago Closed 7 years ago

dobreprogramy.pl sends desktop page to Firefox OS

Categories

(Web Compatibility :: Site Reports, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: pawelklimek102, Unassigned, Mentored, NeedInfo)

References

()

Details

(Whiteboard: [country-pl] [clientsniff] [contactready])

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140608211810
They use a few framework jQuery, Bootstrap, and something heavily customized for them which is called dp.

They seem to use client side detection, but maybe a combination of both server-side and client-side.

The interesting thing is that they store the information not in a cookie but in localStorage. So it's a bit harder to reset. Clearing cookies will not work.

var Dp = {


    _hiddenVar: null,
    _visibilityChangeEvent: null,
    pageVisible: true,
    pageVariant: 'variant-desktop',
    isMobile: false,
    os: null || window.localStorage.getItem('os'),
    os_arch: null || window.localStorage.getItem('os_arch'),
    browser: null || JSON.parse(window.localStorage.getItem('browser')),
    speech: null,
    dockMode: window.localStorage.getItem('dockMode'),
    dockState: 'pageTop',

    detectBrowser: function () {
//etc
}
}

The main author of the JS code seems to be  
   Tomasz "Tomick" Janusz
   http://www.linkedin.com/in/tomick
   https://twitter.com/TomaszJanusz

We could try to contact him and sees if he can help us to get Firefox OS receive the mobile experience like other mobile browsers.
Mentor: kdubost
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [country-pl] [clientsniff] [contactready]
I now get a desktop page even when I spoof as the iPhone. Does this site send a mobile version to any browser?
Flags: needinfo?(pawelklimek102)
I receive a mobile site on ipod touch device, and when faking Chrome Mobile UA on Firefox Desktop.
Firefox OS still receives a desktop site.

They store the browser version into localstorage

window.localStorage.getItem('browser')
"{"chrome":true,"version":"30.0.0.0","webkit":true}"
window.localStorage.os
"android"

window.localStorage.getItem('browser')
"{"mozilla":true,"version":"30.0"}"


This is persistent.
Priority: -- → P5
Let's close this as WONTFIX for Firefox OS. Firefox Android receives the right version.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
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.