Closed Bug 828388 Opened 12 years ago Closed 11 years ago

amazon.es doesn't recognize Fennec and B2G UAs as mobile

Categories

(Web Compatibility :: Mobile, defect)

ARM
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lmandel, Assigned: karlcow)

References

()

Details

(Whiteboard: [uaoverride] [country-es] [serversniff])

amazon.es serves a desktop site to B2G. Bug 823364 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: amazon.es
Whiteboard: [uaoverride]
OS: Gonk (Firefox OS) → All
Summary: amazon.es doesn't recognize B2G UA as mobile → amazon.es doesn't recognize Fennec and B2G UAs as mobile
Contacted someone from Amazon. If iPhone is in the UA string, the browser is getting redirected to the mobile version. http GET http://www.amazon.es/ User-Agent:'iPhone' HTTP/1.1 302 MovedTemporarily Location: http://www.amazon.es/gp/aw/h.html/278-4856838-1573723 if the Firefox OS user agent, the browser receives the desktop version. http GET $ADSURI User-Agent:'Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0' HTTP/1.1 200 OK
Joanne Nagel (Mozilla BD) should also have contacts at Amazon and may be able to help here.
I have sent a request for help from my contact, but she is on the toolbar distribution team...it might take a bit for her to find the right folks. I'll update as soon as I hear a response. Thanks, Joanne
Looking into it. Are there any other variants of that user agent? For example, what's the UA for firefox in tablet devices? Would it "Mobile" still be present there?
Do you have the same issue for the Amazon product search links from your address bar? What URL do you use for those -- www.amazon.es/s?k=$term or www.amazon.es/gp/aw/s?k=$term?
Daniel, (In reply to daniel from comment #4) > Looking into it. Are there any other variants of that user agent? For > example, what's the UA for firefox in tablet devices? Would it "Mobile" > still be present there? Usually the User Agent String is documented on https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference For Firefox on Android Phone Mozilla/5.0 (Android; Mobile; rv:13.0) Gecko/13.0 Firefox/13.0 Tablet Mozilla/5.0 (Android; Tablet; rv:13.0) Gecko/13.0 Firefox/13.0 For Firefox OS Phone Mozilla/5.0 (Mobile; rv:15.0) Gecko/15.0 Firefox/15.0 If you think we can improve the documentation, tell me I will give it a shot. I don't know about any "Firefox OS Tablet" specifically, I will check. Also I have noticed we have other issues related to this one. https://bugzilla.mozilla.org/show_bug.cgi?id=828412 Amazon UK https://bugzilla.mozilla.org/show_bug.cgi?id=826512 Amazon Not sure if there are managed individually or through the same instance and framework.
Flags: needinfo?(danielsi)
Daniel, (In reply to danielsi from comment #5) > Do you have the same issue for the Amazon product search links from your > address bar? What URL do you use for those -- www.amazon.es/s?k=$term or > www.amazon.es/gp/aw/s?k=$term? So indeed. http GET http://www.amazon.es/s?k=foo User-Agent:'iPhone' HTTP/1.1 302 Moved Temporarily Location: /gp/aw/s/ref=sr_rd_mob/276-4023562-8208413?rh=i%3Aaps%2Ck%3Afoo&keywords=foo&ie=UTF8 The iPhone gets a redirection and the Firefox OS string gets the Desktop site. On the other hand, the second link sends slightly different styles and assets such as -<meta name="apple-touch-fullscreen" content="YES"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/> +<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/> and -<link type="text/css" href="/gp/anywhere/scripts/leanbeacon2touchsmart.css/4f0252e07c0a13f3c762bcdd40635238?sv=HiRes" rel="Stylesheet" media="screen" /> +<link type="text/css" href="/gp/anywhere/scripts/leanbeacon2touchsmart.css/4f0252e07c0a13f3c762bcdd40635238?sv=Smart" rel="Stylesheet" media="screen" /> and - s.src = '/gp/anywhere/scripts/smartiphone.js/1e7319675c80dc8f3d3a898339c4d909'; + s.src = '/gp/anywhere/scripts/smart.js/9ed5a21d2597c5f30c52cf42815fbffb'; But it IS a working mobile site.
Flags: needinfo?(danielsi)
Thanks, Karl. It's easier to see on our side what we need to change now.
Whiteboard: [uaoverride] → [uaoverride] [country-es]
Deployed the fix for this across all domains.
That's wonderful news Daniel. Thanks a lot.
This is fixed. I will create a patch
Assignee: nobody → kdubost
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 897041
fixing for stats
Whiteboard: [uaoverride] [country-es] → [uaoverride] [country-es] [serversniff]
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.