Closed Bug 937441 Opened 12 years ago Closed 11 years ago

submarino.com.br has UA sniffer that doesn't detect Firefox OS

Categories

(Web Compatibility :: Site Reports, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: leonardo.balter, Unassigned)

References

()

Details

(Whiteboard: [mobile-compat-form][country-br][clientsniff][sitewait])

Site: http://www.submarino.com.br submarino.com.br has UA sniffer that doesn't detect Firefox OS :: Steps To Reproduce 1. open www.submarino.com.br on the 2. The site checks on the navigator.userAgent if it's a mobile device 3. They have a easy to see js file specified to do the step number 2: http://img.submarino.com.br/js/mobileRedir.js 4. "var isMobile = userAgent.match(/iP(hone|od)|Android.*Mobile|BlackBerry/) != null;" ... :: Expected Result get redirected to the m.submarino.com.br as it happens on Firefox for Android :: Actual Result it keeps me on the full and big sized desktop version. :: Additional Information Software Version: Firefox OS 1.1.0.1 Device Information: LG Fireweb D300. Firefox OS 1.1 Reporter's User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0
Whiteboard: [mobile-compat-form] → [mobile-compat-form][country-br]
Yep, good find Leo. To fix it, they could change: var isMobile = userAgent.match(/iP(hone|od)|Android.*Mobile|BlackBerry/) != null; to something like: var isMobile = userAgent.match(/iP(hone|od)|(?:Android.*)?Mobile(?:.*Firefox)?|BlackBerry/) != null; Or if they want to be more inclusive, var isMobile = userAgent.match(/iP(hone|od)|Mobile|BlackBerry/) != null;
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form][country-br] → [mobile-compat-form][country-br][clientsniff][contactready]
Eh, maybe the non-capturing is overkill, |(Android.*)?Mobile(.*Firefox)| looks less scary.
Email sent using the site support form (http://www.submarino.com.br/atendimento-email).
Assignee: nobody → astevenson
Status: NEW → ASSIGNED
Whiteboard: [mobile-compat-form][country-br][clientsniff][contactready] → [mobile-compat-form][country-br][clientsniff][sitewait]
Probably is better to contact them is via b2w inc. http://www.b2wdigital.com/contatos They are responsible for Submarino, Americanas, etc. Maybe I have contacts in Facebook that works at B2W.
Olá Adam Stevenson, Seu atendimento referente ao pedido 0000000000 foi registrado na nossa Central de Relacionamento e o protocolo é 2014012052461. Obrigado, Time Submarino
Thanks Leo! I'll let you know if I hear anything back as well.
Response asking to send email to corporativo@submarino.com. I sent standard opening letter in Portuguese.
I explained the issue to a contact from B2W that Leo provided me.
Assignee: astevenson → nobody
I'm getting the desktop site in Chrome/Firefox Android and in mobile Safari. If I navigate to m.submarino.com.br I get the mobile version, but the redirects aren't happening for me. Mike - can you confirm if you get the same?
Flags: needinfo?(miket)
Flags: needinfo?(miket)
Yep, <!--script src="http://img.submarino.com.br/js/mobileRedir.js"></script-->. I guess I'll close this as INVALID now, since everyone gets the desktop site.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
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.