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

RESOLVED FIXED

Status

Tech Evangelism
Mobile
RESOLVED FIXED
5 years ago
2 years ago

People

(Reporter: lmandel, Assigned: karlcow)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

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

Attachments

(1 attachment)

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.
Blocks: 827553
Whiteboard: [uaoverride]

Comment 1

5 years ago
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.
(Assignee)

Updated

4 years ago
Whiteboard: [uaoverride] → [uaoverride] [country-br]

Comment 4

4 years ago
contactemail
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
(Assignee)

Updated

4 years ago
(Assignee)

Comment 5

4 years ago
Ah maybe a better contact for the site
http://www.linkedin.com/in/moreiradaniel
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
(Assignee)

Comment 6

4 years ago
description
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.
(Assignee)

Comment 7

4 years ago
mdownsuggestedfix
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
(Assignee)

Comment 8

3 years ago
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
(Assignee)

Comment 9

3 years ago
contacttwitter
Contacted again today.
http://twitter.com/MozWebCompat/status/511668926212628480
Created attachment 8563745 [details]
Screenshot with the UA override workaround removed, on a Flame smartphone
(Assignee)

Comment 11

2 years ago
contactemail
sent email to their email address in the footer.
(Assignee)

Comment 12

2 years ago
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)
(Assignee)

Comment 14

2 years ago
https://m.magazineluiza.com.br/

And this is fixed \o/
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.