Closed
Bug 969863
Opened 10 years ago
Closed 9 years ago
meinestadt.de sends desktop site to Firefox OS
Categories
(Web Compatibility :: Site Reports, defect)
Web Compatibility
Site Reports
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: sezen.guenes, Unassigned, Mentored)
References
()
Details
(Whiteboard: [country-de][clientsniff][contactready])
Attachments
(1 file)
97.95 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 meinestadt.de with Firefox OS. Actual results: I got a Desktop Website. Expected results: I expected a Mobile Website.
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
description |
meinestadt.de uses javascript to detect the visitor's device type, however this script fails to detect that Firefox OS devices are smartphones. The script is here: http://img.meinestadt.de/js/min/main/all-v000616.min.js and starts with function detectNewDevices() { var ua = navigator.userAgent.toLowerCase(); var RegIsMobile = "/iphone|ipod|blackberry|bb|opera|mini|windowssce|palm|smartphone|iemobile|^mobi$|symbian|meego/|android; mobile;"; var RegIsTablet = "/ipad|xoom|playbook|tablet|kindle|kindle|transformer/"; var RegIsNotAndroidSmartphone = "/^(?=.*Android)(?=.*Safari)(?!.*Mobile).*/i"; The results of this browser detection are used in an inline script that starts with: <script type="text/javascript"><!-- var deviceType = MTC.detectNewDevices(); /**/ if (deviceType.mobile === true){ var original_url = 'http://www.meinestadt.de/'; var mobile_url = 'http://home.mobil.meinestadt.de/deutschland/';
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [country-de][clientsniff][contactready]
Updated•10 years ago
|
Updated•10 years ago
|
Whiteboard: [country-de][clientsniff][contactready] → [country-de][clientsniff][contactready][mentor=astevenson]
Updated•10 years ago
|
Mentor: astevenson
Whiteboard: [country-de][clientsniff][contactready][mentor=astevenson] → [country-de][clientsniff][contactready]
Comment 3•9 years ago
|
||
This is fixed.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•5 years ago
|
Product: Tech Evangelism → Web Compatibility
Assignee | ||
Updated•1 month ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•