Closed Bug 826342 Opened 7 years ago Closed 6 years ago

mercadolivre.com.br doesn't recognize B2G UA as mobile (also mercadolibre.com.uy , several local sites)

Categories

(Web Compatibility :: Mobile, defect)

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lmandel, Assigned: karlcow)

References

()

Details

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

mercadolivre.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.
→ http GET http://www.mercadolivre.com.br/ User-Agent:'Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19' | grep -i mobile

<!-- Conditional comment for mobile ie7 http://blogs.msdn.com/b/iemobile/ -->
<!--[if IEMobile 7 ]> <html class="iem7"> <![endif]-->
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html > <!--<![endif]-->
	<!-- Mobile viewport optimization http://goo.gl/b9SaQ -->
    <link href="http://static.mlstatic.com/org-img/mobile/ch/0.4.8/chico.min.css" type="text/css" rel="stylesheet"/>
    <link rel='stylesheet' type='text/css' href='http://home.mlstatic.com/css/css_homeMobile__v5913e062813.gz.css' />
	<link rel="apple-touch-icon-precomposed" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-57x57-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-72x72-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-114x114-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-144x144-precomposed.png" />
			    	"isMobile": true,
	            (function(d){var scr=window.scr=(function(){return{js:function(s,c){if(typeof s==="string") {s=[s];}var script=d.getElementsByTagName("script")[0];var b={t:s.length,i:0,r:function() {return b.t===b.i;}};var callback=function(){b.i++;if(c&&b.r()){c();}};var ready=(function(){if(script.readyState) {return function(n){n.onreadystatechange=function(){if(n.readyState==='loaded'||n.readyState==='complete'){n.onreadystatechange=null;callback();}};};}else{return function(n){n.onload=function(){callback();};};}}());var i=0;var e=d.createElement("script");for(i;i<b.t;i++){var n=e.cloneNode(true);ready(n);n.src=s[i];script.parentNode.insertBefore(n,script);}}};}());window.onload=(function(){scr.js("http://static.mlstatic.com/org-img/mobile/ch/0.4.8/chico-zepto.min.js" ,function(){ scr.js("http://home.mlstatic.com/js/js_homeMobile__v5913e062813.gz.js");})})}(document));


→ http GET http://www.mercadolivre.com.br/ User-Agent:'Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0' | grep -i mobile


[NOTHING]


→ http GET http://www.mercadolivre.com.br/ User-Agent:'Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0' | grep -i mobile

<!-- Conditional comment for mobile ie7 http://blogs.msdn.com/b/iemobile/ -->
<!--[if IEMobile 7 ]> <html class="iem7"> <![endif]-->
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html > <!--<![endif]-->
	<!-- Mobile viewport optimization http://goo.gl/b9SaQ -->
    <link href="http://static.mlstatic.com/org-img/mobile/ch/0.4.8/chico.min.css" type="text/css" rel="stylesheet"/>
    <link rel='stylesheet' type='text/css' href='http://home.mlstatic.com/css/css_homeMobile__v5913e062813.gz.css' />
	<link rel="apple-touch-icon-precomposed" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-57x57-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-72x72-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-114x114-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://static.mlstatic.com/org-img/mobile/ch/0.4.4/assets/apple-touch-icon-144x144-precomposed.png" />
			    	"isMobile": true,
	            (function(d){var scr=window.scr=(function(){return{js:function(s,c){if(typeof s==="string") {s=[s];}var script=d.getElementsByTagName("script")[0];var b={t:s.length,i:0,r:function() {return b.t===b.i;}};var callback=function(){b.i++;if(c&&b.r()){c();}};var ready=(function(){if(script.readyState) {return function(n){n.onreadystatechange=function(){if(n.readyState==='loaded'||n.readyState==='complete'){n.onreadystatechange=null;callback();}};};}else{return function(n){n.onload=function(){callback();};};}}());var i=0;var e=d.createElement("script");for(i;i<b.t;i++){var n=e.cloneNode(true);ready(n);n.src=s[i];script.parentNode.insertBefore(n,script);}}};}());window.onload=(function(){scr.js("http://static.mlstatic.com/org-img/mobile/ch/0.4.8/chico-zepto.min.js" ,function(){ scr.js("http://home.mlstatic.com/js/js_homeMobile__v5913e062813.gz.js");})})}(document));


There is no redirection to a different domain name but the content sent is different depending if the User Agent is identified as mobile from the user agent string.
Whiteboard: [uaoverride] → [uaoverride] [country-br]
Whiteboard: [uaoverride] [country-br] → [uaoverride] [country-br] [serversniff]
Whiteboard: [uaoverride] [country-br] [serversniff] → [uaoverride] [country-br] [serversniff][contactready]
In the past I've contacted them via the @chicoui twitter account and we got a bug or two fixed for Opera Mobile.
Attempting first contact: https://twitter.com/MozWebCompat/status/380724046456844288
Whiteboard: [uaoverride] [country-br] [serversniff][contactready] → [uaoverride] [country-br] [serversniff][sitewait]
They replied http://twitter.com/chicoui/status/380748507512311808

to note that there are siblings Web sites. 

Bug 827661
Bug 878642
Bug 828425
I'm going to report the issue to the team that can fix this problem. There are 13 siblings sites. I suppose the fix will be apply gradually.
If you want to contact us in the future, I let you knows some emails:  chico@mercadolibre.com or hernan.mammana@mercadolibre.com
Thanks Hernan!
Hernan,

Any news? I tested today and there was no fix. 
Tell us if we can help in any way by providing recommendations or help.

Thanks
Flags: needinfo?(hernanmammana)
I let know Karl Dubost, by email, that Soledad Demateo from MercadoLibre is in contact with José Luiz de Genova from Mozilla Brasil. 
If you think that I can help you with any other thing let it me know.
adding jdegenova who is the contact person for mozilla.
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Mercadolibre has now fixed their sniffing across all their local sites.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(hernanmammana)
Resolution: --- → FIXED
Blocks: 978663
We have bugs for several other local instances but no issue for the .uy one - I'll just reference it in the summary so arewecompatibleyet.com will list this as a fixed bug for Uruguay :). Sorry to spam you!
Summary: mercadolivre.com.br doesn't recognize B2G UA as mobile → mercadolivre.com.br doesn't recognize B2G UA as mobile (also mercadolibre.com.uy , several local sites)
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.