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)
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
Reporter | ||
Updated•12 years ago
|
Whiteboard: [mobile-compat-form] → [mobile-compat-form][country-br]
Comment 1•12 years ago
|
||
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]
Comment 2•12 years ago
|
||
Eh, maybe the non-capturing is overkill, |(Android.*)?Mobile(.*Firefox)| looks less scary.
Comment 3•12 years ago
|
||
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]
Reporter | ||
Comment 4•12 years ago
|
||
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.
Comment 5•12 years ago
|
||
Olá Adam Stevenson,
Seu atendimento referente ao pedido 0000000000 foi registrado na nossa Central de Relacionamento e o protocolo é 2014012052461.
Obrigado,
Time Submarino
Comment 6•12 years ago
|
||
Thanks Leo! I'll let you know if I hear anything back as well.
Comment 7•12 years ago
|
||
Response asking to send email to corporativo@submarino.com. I sent standard opening letter in Portuguese.
Comment 8•12 years ago
|
||
I explained the issue to a contact from B2W that Leo provided me.
Updated•11 years ago
|
Assignee: astevenson → nobody
Comment 9•11 years ago
|
||
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)
Comment 10•11 years ago
|
||
Same here
Updated•11 years ago
|
Flags: needinfo?(miket)
Comment 11•11 years ago
|
||
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
Assignee | ||
Updated•6 years ago
|
Product: Tech Evangelism → Web Compatibility
Assignee | ||
Updated•1 year ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•