Closed Bug 887856 Opened 11 years ago Closed 11 years ago

wap.ratp.fr doesn't recognize B2G UA as mobile

Categories

(Web Compatibility :: Site Reports, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julienw, Assigned: karlcow)

References

()

Details

(Whiteboard: [country-fr] [serversniff] [sitewait])

wap.ratp.fr is the mobile website for the parisian subway company. I already warned them that they needed to send their viewport meta tag to all users about 2 months ago, but they still do browser sniffing before deciding if they should send that viewport meta.
Does this site work in Firefox for Android?
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Yes it does.
FTR I contacted them again, no answer for now.
(copied my comment from bug 887855) 
got an answer today for my second mail, saying they transmit my message to the development team.
I've got a direct contact with the project leader, they will update their WURFL database. I've said it's not a timeproof solution but since the website is in maintenance mode they don't want to invest too much time in it right now.
Good stuff. Thank you for encouraging them to choose an alternative approach to UA detection. I hope that your suggestion is taken into consideration when their site is someday rebuilt. In the meantime, great to have the site pick up the latest WURFL db to enable their mobile version for Firefox OS.
Has the latest WURFL db all the necessary information about FxOS ?
(In reply to Julien Wajsberg [:julienw] from comment #7)
> Has the latest WURFL db all the necessary information about FxOS ?

Unfortunately, that's a loaded question. WURFL contains >600 properties for each entry. The obvious ones have been reviewed and updated but it's still possible that this site is using a property in a way that causes problems.
When entering http://www.ratp.fr/, the mobile device receives the desktop site on:

* Firefox OS
* Firefox for Android
* Android Stock Browser
* iOS

So there is no specific treatment for redirecting from desktop to mobile.

When entering http://wap.ratp.fr/, the mobile device is redirected to http://wap.ratp.fr/siv/ on:

* Firefox OS (but not readable characters too small)
* Firefox for Android
* Android Stock Browser
* iOS


# For Firefox for Android

GET /siv/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: wap.ratp.fr
User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

<meta content="width=device-width,user-scalable=no" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="RATP" name="application-name">
<link href="static/public/png/ratp-touch-icon.png" rel="apple-touch-icon-precomposed">
<link href="static/public/png/ratp-touch-icon.png" rel="apple-touch-icon">
<link href="static/public/png/favicon.png" rel="shortcut icon">


# For Firefox OS

GET /siv/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: wap.ratp.fr
User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

(no specific meta)
Whiteboard: [country-fr] [serversniff] [sitewait]
(In reply to Julien Wajsberg [:julienw] from comment #7)
> Has the latest WURFL db all the necessary information about FxOS ?

Yes. At least version 1.5 has all the necessary information.
See http://tools.scientiamobile.com/?user-agent-string=Mozilla%2F5.0+%28Mobile%3B+rv%3A18.1%29+Gecko%2F18.1+Firefox%2F18.1

Julien, any progress on the issue?
Flags: needinfo?(felash)
I introduced Karl to the RATP contact, and send him all the email history.

Thanks a lot Karl for moving this forward :)
Flags: needinfo?(felash)
Message from the Project Manager

> Je vous confirme que ça a bien été corrigé chez nous, mais pas mis en production.
> 
> Une mise en production est prévue pour notre nouveau tramway T7 (mi novembre), donc tout devrait être réglé d'ici une quinzaine de jours. Si il s'avérait que ce n'était pas le cas vous pouvez revenir vers moi.

So it will be fixed mid-november. To revisit then.
Assignee: nobody → kdubost
This is fixed. As a matter of fact. The experience is now better on firefox OS, Firefox Android than iOS 6 for wap.ratp.fr

On the other hand the site www.ratp.fr gives a bad experience on all devices, iOS included.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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.