Closed
Bug 828439
Opened 11 years ago
Closed 6 years ago
movistar.com.ve doesn't recognize B2G UA as mobile
Categories
(Web Compatibility :: Site Reports, defect, P5)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: lmandel, Assigned: karlcow)
References
()
Details
(Whiteboard: [uaoverride] [country-ve] [clientsniff] [sitewait])
Attachments
(2 files)
movistar.com.ve serves a desktop site to B2G. Bug 823364 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.
Reporter | ||
Updated•11 years ago
|
Blocks: movistar.com.ve
Whiteboard: [uaoverride]
Reporter | ||
Comment 1•11 years ago
|
||
Daniel, I understand that movestar.com.ve is a Telefonica site. Can you please help us get the site updated to recognize Firefox OS as mobile?
Comment 2•11 years ago
|
||
It seems that finally Telefonica Movistar Venezuela update their site and now It recognizes Firefox OS as mobile. Please verify.
Comment 3•11 years ago
|
||
Forget about it the problem persist.
Assignee | ||
Updated•11 years ago
|
Whiteboard: [uaoverride] → [uaoverride] [country-ve]
Assignee | ||
Comment 4•11 years ago
|
||
To be contacted so that movistar identifies /.*mobi.*/i See https://wiki.mozilla.org/Compatibility/Guide#Finding_The_Right_Contact_on_a_Web_site This is a client side redirection done through JavaScript. The script is interesting by itself. I would love to know what led to the choices. there. For Firefox for Android, there is an attempt at identifying Fennec and not attempt at simply identifying /.*mobi.*/i That would cover a lot of case and simplify the code. I'm interested also to know the reason for the LG code path. What are the original User Agent strings, which led to this. For example in JS // user agent in lowercase var agent = navigator.userAgent.toLowerCase(); // detecting if there is the string tablet var tablet = (agent.indexOf("tablet") != -1) // detecting if it's a mobile but not a tablet var mobile = (agent.indexOf("mobi") != -1) || (!tablet) ? true : false; <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Movistar Venezuela</title> <script type="text/javascript"> var elemHeight = document.documentElement.clientHeight; var mobile = (/iphone|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase())); if (mobile) { var userAgent = navigator.userAgent.toLowerCase(); if ( (userAgent.search("android") > -1) && (userAgent.search("mobile") > -1) && ( ((screen.width==800)&&((screen.height<=1140)||(screen.height>=500)))||((screen.width==0)&&(screen.height==0)) ) ){ document.location = "/particulares/m/default.asp"; } if ( (userAgent.search("android") > -1) && (userAgent.search("mobile") > -1) && ( (screen.width==800)&&(((screen.height>=570 )&&(screen.height<=580)) || ((screen.height>=358)&&(screen.height<=361)) || (screen.height==1130) || (screen.height==1131)) ) ){ document.location = "/particulares/m/default.asp"; }else{ if (userAgent.search("android") > -1){ var str=navigator.userAgent; var n=str.search("Fennec"); if(n!=-1){ document.location = "/particulares/default.asp"; }else{ var n2=str.search("Opera"); if(n2!=-1){ document.location = "/particulares/default.asp"; }else{ var n3=str.search("LG"); if(n3!=-1){ document.location = "/particulares/m/default.asp"; } if( (screen.width==800)&&( ((screen.height>=1180)&&(screen.height<=1330)) || ((screen.height>=391)&&(screen.height<=668)) ) ){ document.location = "/particulares/default.asp"; } if( (screen.width==1280) && ( (screen.height>=212)||(screen.height<=496) ) ){ document.location = "/particulares/default.asp"; } } } } } if(navigator.platform=='ipod'){ document.location = "/particulares/m/default.asp"; } if(navigator.platform=='blackberry'){ document.location = "/particulares/m/default.asp"; } if(navigator.platform=='iphone'){ document.location = "/particulares/m/default.asp"; } if(navigator.platform!="Linux armv7l"){ document.location = "/particulares/m/default.asp"; } }else{ if ((navigator.platform=="Series60")||(navigator.platform=="Nokia_Series_40")||(navigator.platform=="Symbian")){ document.location = "/particulares/m/default.asp"; }else{ document.location = "/particulares/default.asp"; } } </script> </head> <body> </body> </html>
Assignee: nobody → kdubost
Whiteboard: [uaoverride] [country-ve] → [uaoverride] [country-ve] [clientsniff]
Assignee | ||
Updated•11 years ago
|
Assignee: kdubost → nobody
Updated•11 years ago
|
Whiteboard: [uaoverride] [country-ve] [clientsniff] → [uaoverride] [country-ve] [clientsniff] [contactready]
Comment 5•11 years ago
|
||
Hi Daniel and Beatriz, would either of you be able to provide a technical contact at Movistar so we can help this fix this?
Comment 6•11 years ago
|
||
Hi Fernando, would you be able to help us get Firefox OS redirected to the mobile site?
Comment 7•11 years ago
|
||
Additionally if you test movistar.com.ve with Firefox for Android you will get a blank page with movistar icon
Comment 8•11 years ago
|
||
They expect the word "Fennec" in the UA string: if (userAgent.search("android") > -1){ var str=navigator.userAgent; var n=str.search("Fennec"); if(n!=-1){ document.location = "/particulares/default.asp"; }else{ var n2=str.search("Opera"); if(n2!=-1){ document.location = "/particulares/default.asp";
Comment 9•10 years ago
|
||
description |
When loading the Movistar site, the first response contains a JavaScript that is meant to detect what kind of device the user has, and send them to a desktop- or mobile site automatically. This JavaScript uses an overly complex mix of detection by names like 'iphone|ipod|android' and screen size detection. The complexity means some devices are not detected correctly - this is a serious problem because a device that is not detected correctly may not be sent to the website. In such cases, the user will just see a blank, empty page when trying to access movistar.com.ve ! In other cases, smartphone users may get a desktop site - meaning they will not get the intended user experience. Currently, Firefox for Android runs into the first problem and gets an empty page. Firefox OS smartphone devices get a desktop site.
Comment 10•10 years ago
|
||
suggestedfix |
This can easily be fixed by simplifying the JavaScript for device detection. Many sites that use this approach detect only the screen size, and redirect to mobile or desktop version depending on the size of the user's screen. This is a fairly simple and reliable technique, and detecting devices by name should in most cases not be necessary when this approach is used.
Comment 11•10 years ago
|
||
Hi, Clearing ni for Fernando García. He is not a dev from Movistar, but a user (sorry for the mails received Fernando). Trying to find the developer responsible for this JS code. Thanks, David
Flags: needinfo?(fernandogarcia) → needinfo?
Assignee | ||
Comment 12•10 years ago
|
||
contact twitter |
Trying to contact through someone who worked there in the past http://twitter.com/MozWebCompat/status/439296042496843776
Assignee: nobody → kdubost
Flags: needinfo?
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 13•10 years ago
|
||
contact twitter |
Second attempt with someone working there. http://twitter.com/MozWebCompat/status/501956758508544000
Whiteboard: [uaoverride] [country-ve] [clientsniff] [contactready] → [uaoverride] [country-ve] [clientsniff] [sitewait]
Comment 14•9 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Priority: -- → P5
Assignee | ||
Comment 15•6 years ago
|
||
Closing as we are not working on Firefox OS anymore.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: Tech Evangelism → Web Compatibility
Updated•2 months ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•