Closed Bug 827626 Opened 12 years ago Closed 9 years ago

magazineluiza.com.br doesn't recognize B2G UA as mobile

Categories

(Web Compatibility :: Site Reports, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lmandel, Assigned: karlcow)

References

()

Details

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

Attachments

(1 file)

magazineluiza.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.
Whiteboard: [uaoverride]
I've tested on a FXOS Geeksphone dev preview and it's working fine.
It's opening the m. version.
(In reply to mkt45 from comment #1)
> I've tested on a FXOS Geeksphone dev preview and it's working fine.
> It's opening the m. version.

Not working for me. I'm getting a desktop site.
Ditto. Desktop content on B2G after removing the UA override.
Whiteboard: [uaoverride] → [uaoverride] [country-br]
Contacted by E-mail (atendimento.site @ magazineluiza.com.br)
Assignee: nobody → hsteen
Status: NEW → ASSIGNED
Whiteboard: [uaoverride] [country-br] → [uaoverride] [country-br][serversniff][sitewait]
Assignee: hsteen → nobody
Status: ASSIGNED → NEW
Ah maybe a better contact for the site
http://www.linkedin.com/in/moreiradaniel
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
When a user is accessing http://www.magazineluiza.com.br/ with Firefox OS, s/he receives the desktop content.

When a user is accessing http://www.magazineluiza.com.br/ with Firefox Android (or Safari iOS), s/he is redirected to the mobile site http://m.magazineluiza.com.br/

The issue is created by server side user agent detection not taking into account Firefox OS user agent string.
Suggestion for fixing the issue. Sending the same version of the site to Firefox OS than Firefox Android.

The [UA string for Firefox OS][1] has the patterns

    "Mozilla/5.0 (Mobile; rv:$VERSION) Gecko/$VERSION Firefox/$VERSION"
    "Mozilla/5.0 (Mobile; nnnn; rv:$VERSION) Gecko/$VERSION Firefox/$VERSION"

* where `$VERSION` is a number.
* where `nnnn` is a string.

but we usually recommend to identify the substring `/mobi/` as much as possible so it will also help other browser vendors on mobile.

[1]: https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference#Firefox_OS
Problem still not solved.
To note Firefox Android receives the good version which is working.


The footer has a link to http://m.magazineluiza.com.br/

Testing again HTTP.

# iOS
→ http --print hH GET http://www.magazineluiza.com.br/ 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/6.0 Mobile/11A465 Safari/9537.53'

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Host: www.magazineluiza.com.br
User-Agent:  Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/6.0 Mobile/11A465 Safari/9537.53

HTTP/1.1 301 Unknown Error
Accept-Ranges: bytes
Age: 0
Connection: keep-alive
Date: Tue, 16 Sep 2014 00:05:29 GMT
Location: http://m.magazineluiza.com.br
X-Debug-Hash: /www.magazineluiza.com.brhttp
transfer-encoding: chunked


# Chrome Android
→ http --print hH GET http://www.magazineluiza.com.br/ 'User-Agent: Mozilla/5.0 (Linux; Android 4.2.2; GT-P3113 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.141 Safari/537.36'

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Host: www.magazineluiza.com.br
User-Agent:  Mozilla/5.0 (Linux; Android 4.2.2; GT-P3113 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.141 Safari/537.36

HTTP/1.1 301 Unknown Error
Accept-Ranges: bytes
Age: 0
Connection: keep-alive
Date: Tue, 16 Sep 2014 00:04:31 GMT
Location: http://m.magazineluiza.com.br
X-Debug-Hash: /www.magazineluiza.com.brhttp
transfer-encoding: chunked


# Firefox OS

→ http --print hH GET http://www.magazineluiza.com.br/ "User-Agent: Mozilla/5.0 (Mobile; rv:32) Gecko/32 Firefox/32"

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Host: www.magazineluiza.com.br
User-Agent:  Mozilla/5.0 (Mobile; rv:32) Gecko/32 Firefox/32

HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 365
Cache-Control: public, max-age=600, s-maxage=450
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 45752
Content-Type: text/html; charset=UTF-8
Date: Tue, 16 Sep 2014 00:06:01 GMT
Vary: Accept-Encoding
X-Debug-Hash: /www.magazineluiza.com.brhttp

# Firefox Android

→ http --print hH GET http://www.magazineluiza.com.br/ "User-Agent: Mozilla/5.0 (Android; Mobile; rv:32) Gecko/32 Firefox/32"

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Host: www.magazineluiza.com.br
User-Agent:  Mozilla/5.0 (Android; Mobile; rv:32) Gecko/32 Firefox/32

HTTP/1.1 301 Unknown Error
Accept-Ranges: bytes
Age: 0
Connection: keep-alive
Content-Length: 0
Date: Tue, 16 Sep 2014 00:06:43 GMT
Location: http://m.magazineluiza.com.br
X-Debug-Hash: /www.magazineluiza.com.brhttp
Contacted again today.
http://twitter.com/MozWebCompat/status/511668926212628480
sent email to their email address in the footer.
Received this message in Brazilian portuguese with the title "Magazine Luiza - Protocolo 18653358 "

 Olá, Karl.

Pedimos gentilmente que nos esclareça o erro que aparece em nosso site, para que possamos encaminhar para analise.

Estamos à sua disposição em caso de dúvidas.

Equipe de Atendimento
Central do Cliente Luiza
(in case you haven't translated that, they're asking for clarification on the error with their site)
https://m.magazineluiza.com.br/

And this is fixed \o/
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: