Closed Bug 969844 Opened 9 years ago Closed 5 years ago sends desktop site to Firefox on Android


(Web Compatibility :: Mobile, defect, P1)



(Not tracked)



(Reporter: sezen.guenes, Assigned: denschub)




(Whiteboard: [country-de][serversniff][clientsniff][webkitcss][contactready][webcompat:sitepatch-applied])


(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 with Firefox OS.

Actual results:

I got a Desktop Website.

Expected results:

I expected a Mobile Website.
This site has multiple issues:

1) Server-side browser detection doesn't detect Firefox OS devices as smartphones. Firefox OS gets redirected to the desktop site:

GET / HTTP/1.1
User-Agent: Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0

HTTP/1.1 301 Moved Permanently

while Firefox for Android gets redirected to the mobile site:

GET / HTTP/1.1
User-Agent: Mozilla/5.0 (Android; Mobile; rv:26.0) Gecko/26.0 Firefox/26.0

HTTP/1.1 307 Temporary Redirect

2) Client-side sniffing sends Firefox for Android back to the desktop site. This happens because the site tries to limit the mobile version to only certain versions of the Android operating system.

        function detect(ua){var os={},browser={},webkit=ua.match(/WebKit\/([\d.]+)/),android=ua.match(/(Android)\s+([\d.]+)/);if(webkit)browser.version=webkit[1];browser.webkit=!!webkit;if(android){;os.version=android[2];}return{os:os,browser:browser};}

The Firefox User-Agent string does not contain information about the device's Android version.

3) The CSS for the mobile site contains some styling that is webkit-specific and does not have equivalent rules for other devices, for example:

.flexBox {
    -webkit-box-align: center;
    -webkit-box-pack: justify;
    display: -webkit-box;
Summary: sends desktop site to Firefox OS → sends desktop site to Firefox OS and Firefox on Android
Whiteboard: [country-de][serversniff][clientsniff][webkitcss][contactready]
The first issue to fix would be adding some equivalents to the Flexbox CSS to make it standards-compliant and cross-browser compatible. See for tips.

Afterwards, fixing the JavaScript to tolerate devices without Android version in the User-Agent string will solve the issues for Firefox on Android.

Finally, the backend sniffing should recognise that devices with the string "Mobi" or "Mobile" in the User-Agent string can be redirected to the mobile site. This will give users of browsers like Firefox OS and Opera Mini a better user experience.
Ever confirmed: true
They also have sites
* France
* Italy
* Romania
* Poland

They belong to eBay.
I will try to find out if there is a specific team for it.
Assignee: nobody → kdubost
Contacted someone at Ebay

We have identified a series of issues for the family of Web sites which belong to Ebay group. I'm not sure Ebay directly manages these sites. You might be able to tell us who we should contact in this company.

Explanation of the bug in details.
Simple version:
Geeky version:
Thanks for contacting my colleague at Ebay.

These details did reach the correct group responsible for the family of web sites. We are tracking this issue. 

We will add comments here when the issue status changes, or if there are any questions. Thanks for the detailed bug report!
This is still an issue, at least fore firefox for android. Any possible updates Jay?
Flags: needinfo?(jay.barker)
Summary: sends desktop site to Firefox OS and Firefox on Android → sends desktop site to Firefox on Android
Dennis, let's send a UA spoof for this one.
Assignee: kdubost → dschubert
Priority: -- → P1
Flags: needinfo?(jay.barker)
Flags: needinfo?(dschubert)
Flags: needinfo?(dschubert)
Blocks: 1505828
Whiteboard: [country-de][serversniff][clientsniff][webkitcss][contactready] → [country-de][serversniff][clientsniff][webkitcss][contactready][sitepatch-built]
Landed in bug 1512907.
Blocks: 1512907
Closed: 5 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Web Compatibility
Whiteboard: [country-de][serversniff][clientsniff][webkitcss][contactready][sitepatch-built] → [country-de][serversniff][clientsniff][webkitcss][contactready][webcompat:sitepatch-applied]
You need to log in before you can comment on or make changes to this bug.