Closed Bug 826344 Opened 12 years ago Closed 11 years ago

abril.com.br 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 INVALID

People

(Reporter: lmandel, Assigned: karlcow, NeedInfo)

References

()

Details

(Whiteboard: [uaoverride] [country-br] [clientsniff][sitewait])

abril.com.br serves a desktop site to B2G. Bug 819210 added an UA override for this domain. The override should be removed once the domain serves mobile content to B2G. This bug tracks the evangelism for the site to recognize the B2G UA and the removal of the override at that time.
I've tested on a FXOS Geeksphone dev preview and it's working fine. It's opening the m. version.
(In reply to mkt45 from comment #1) > I've tested on a FXOS Geeksphone dev preview and it's working fine. > It's opening the m. version. Not working for me. I'm getting a desktop site.
Whiteboard: [uaoverride] → [uaoverride] [country-br]
To be contacted. https://wiki.mozilla.org/Compatibility/Guide#Finding_The_Right_Contact_on_a_Web_site I confirm. The site is sending Desktop Content to Firefox OS + ZTE. Be sure to remove the UA override when testing. The site needs to send the mobile content to Firefox OS "Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0" Going deeper, the site sends 69 JavaScript (in <script>) The redirection is handled from the client side in the first script. <script type="text/javascript"> //<!-- var iphone=location.search.indexOf("origem=iphone"); var isAndroid = navigator.userAgent.toLowerCase().indexOf("android") > -1; if (iphone < 0) { if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))) { location.replace("http://wap.abril.com.br"); } } if (isAndroid) { location.replace("http://wap.abril.com.br"); } //--> </script> # Firefox OS GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.abril.com.br User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 200 OK Accept-Ranges: bytes Connection: keep-alive Content-Encoding: gzip Content-Length: 16696 Content-Type: text/html Date: Wed, 21 Aug 2013 16:20:15 GMT Server: Apache/2.2.14 (Unix) mod_jk/1.2.28 PHP/5.3.1 Vary: Accept-Encoding wapbypass: 1 # Firefox for Android GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.abril.com.br User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 200 OK Accept-Ranges: bytes Connection: keep-alive Content-Encoding: gzip Content-Length: 16696 Content-Type: text/html Date: Wed, 21 Aug 2013 16:20:52 GMT Server: Apache/2.2.14 (Unix) mod_jk/1.2.28 PHP/5.3.1 Vary: Accept-Encoding wapbypass: 1
Whiteboard: [uaoverride] [country-br] → [uaoverride] [country-br] [clientsniff]
Whiteboard: [uaoverride] [country-br] [clientsniff] → [uaoverride] [country-br] [clientsniff][contactready]
Found http://www.abril.com.br/faleconosco/index.shtml Contacted in English through the form.
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Whiteboard: [uaoverride] [country-br] [clientsniff][contactready] → [uaoverride] [country-br] [clientsniff][sitewait]
I've already reached someone to point any abril.com developer, so we can go further with this. He will comment on this thread, so this can move on :)
Did we hear back from Abril.com developer?
Flags: needinfo?(daniel.filho+perona)
nope. I'm trying today once again and will keep this posted on a daily basis. thanks for the reminder, Adam!
Just got some answer. The responsible to fix this (Julio Cesar Lima) is in another country and looks like he will take a while to come back. Anyway, as soon as he gets in touch (or I find out anyone else that can help us on this), I will update this.
Hey Guys, how can I help you?
Hi Julio thank you for joining bugzilla! We are having a problem with abril.com.br where the site is providing Firefox OS the desktop version of the site instead of the mobile. Comment 3 in this bug shows which piece of code is affected, it is related to the user agent detection. It would be ideal if we could get the site to detect Firefox OS as mobile. The recommended way to detect FFOS and other mobile browsers is by searching for the string "Mobi" as documented here: https://developer.mozilla.org/en-US/docs/Browser_detection_using_the_user_agent#Mobile.2C_Tablet_or_Desktop Any help you can provide is greatly appreciated. :)
Flags: needinfo?(daniel.filho+perona)
(In reply to jcmlima from comment #9) > Hey Guys, how can I help you? Julio any status about this issue. Can we help you?
Flags: needinfo?(jcmlima)
Closing as INVALID and removing the UA override. There is no redirection at all for any mobile devices I have tested . It seems the WAP site which still exists is not promoted anymore. http://wap.abril.com.br/tc/abril/
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Blocks: 995831
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.