Closed Bug 969844 Opened 11 years ago Closed 10 months ago

mobile.de sends desktop site to Firefox on Android

Categories

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

Tracking

(Webcompat Priority:P2, Webcompat Score:3, firefox138 fixed)

VERIFIED FIXED
138 Branch
Webcompat Priority P2
Webcompat Score 3
Tracking Status
firefox138 --- fixed

People

(Reporter: sezen.guenes, Assigned: denschub)

References

()

Details

(Keywords: webcompat:needs-contact, webcompat:site-report, webcompat:sitepatch-applied, Whiteboard: [country-de][serversniff][clientsniff][webkitcss][contactready][webcompat:sitepatch-applied][webcompat:sightline])

User Story

platform:android
impact:annoyance
configuration:general
affects:all
branch:release
user-impact-score:200

Attachments

(2 files)

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 mobile.de 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 Host: mobile.de HTTP/1.1 301 Moved Permanently Location: http://www.mobile.de/ 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 Host: www.mobile.de HTTP/1.1 307 Temporary Redirect Location: http://m.mobile.de 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.android=true;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: mobile.de sends desktop site to Firefox OS → mobile.de 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 http://www.otsukare.info/2014/01/23/flexbox-converter 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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
They also have sites * France http://www.automobile.fr/ * Italy http://www.automobile.it/ * Romania http://www.mobile.de/ro/ * Poland http://www.mobile.de/pl/ They belong to eBay. I will try to find out if there is a specific team for it.
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Contacted someone at Ebay ========== We have identified a series of issues for the Mobile.de 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: http://webcompat.com/simplebug/index.html#mozilla/969844 Geeky version: https://bugzilla.mozilla.org/show_bug.cgi?id=969844 ==============
Thanks for contacting my colleague at Ebay. These details did reach the correct group responsible for the mobile.de 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: mobile.de sends desktop site to Firefox OS and Firefox on Android → mobile.de 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
Status: ASSIGNED → RESOLVED
Closed: 7 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]
Component: Mobile → Site Reports

Reopening this one, since we're now tracking the status of webcompat issues with interventions differently.

Status: RESOLVED → VERIFIED
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Whiteboard: [country-de][serversniff][clientsniff][webkitcss][contactready][webcompat:sitepatch-applied] → [country-de][serversniff][clientsniff][webkitcss][contactready][webcompat:sitepatch-applied][webcompat:sightline]
Webcompat Priority: --- → P3
Severity: normal → S4
User Story: (updated)
Webcompat Priority: P3 → P2
Webcompat Score: --- → 6
Priority: P1 → P2
Webcompat Score: 6 → 3

The page appears to be sending their mobile layout to Firefox on Android now, so we can remove our intervention.

Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e9ea3c65f73a remove our webcompat UA override for mobile.de; r=denschub,webcompat-reviewers
Status: REOPENED → RESOLVED
Closed: 7 years ago10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

Verified as FIXED using RC Build fenix android-arm64-v8a

Tested with:

Browser / Version: Firefox 137.0 Build 2016081314
Operating System: Google Pixel 3 (Android 12) -1080 x 2160 pixels, 18:9 ratio (~443 ppi density)
Operating System: Oppo Find X5 (Android 13) - 1080 x 2400 pixels, 20:9 ratio (~402 ppi density)

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: