Closed Bug 934128 Opened 11 years ago Closed 6 years ago

www.americanas.com.br doesn't open the mobile site on FirefoxOS

Categories

(Web Compatibility :: Site Reports, defect, P5)

Other
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: leonardo.balter, Unassigned)

References

()

Details

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

Site: http://www.americanas.com.br
www.americanas.com.br doesn't open the mobile site on FirefoxOS

:: Steps To Reproduce

1. access www.americanas.com.br on my Firefox OS phone
2. it doens't open the mobile site and the desktop site doesn't have the viewport set.
3. if I open on my Firefox for Android I get to the mobile version
...

I didn't find the userAgent detecting. :( and even tried to sniff using curl and httpie, without success.

:: Expected Result

Opening the mobile friendly site on FirefoxOS

:: Actual Result

Opened the desktop site not friendly to mobiles on FirefoxOS

:: 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, they're doing some UA sniffing in http://img.americanas.com.br/js/mobileRedir.js:

var isMobile = userAgent.match(/iP(hone|od)|Android.*Mobile|BlackBerry/) != null;
...
if (isMobile && (mobileCookie != "1" || mobileQuery == "0") && mobileQuery != "1" && mobileQuery != "2") {
  window.location = "http://m.americanas.com.br" + window.location.pathname + window.location.search;
}

One recommendation could be to change `isMobile` to the following:

var isMobile = userAgent.match(/iP(hone|od)|(Android|Firefox).*Mobile|BlackBerry/) != null;

But if they want to be even more inclusive, 

var isMobile = userAgent.match(/iP(hone|od)|mobi|BlackBerry/) != null;
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form][country-br] → [mobile-compat-form][country-br][clientsniff][contactready]
Looks like they're doing the same as Submarino (see #937441). 

I think both sites are from the B2W company, I'll try to get in touch with them.
Tried filling out the site form but not sure it went through.
I explained the issue to a contact from B2W that Leo provided me.
Whiteboard: [mobile-compat-form][country-br][clientsniff][contactready] → [mobile-compat-form][country-br][clientsniff][sitewait]
Nothing has changed as of today.

Mike did you get any answers from this person?
http://www.b2wdigital.com/en

Trying an additional contact
http://twitter.com/MozWebCompat/status/496612475245039616
Flags: needinfo?(miket)
@Karl, I never did. The last email was from February, but I just sent another message asking her to ping the developers she passed the bug fixes along to.
Priority: -- → P5
I don't think we are going to work on this anymore, closing.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
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.