Closed Bug 972374 Opened 10 years ago Closed 10 years ago

ikea.com sends desktop site to Firefox OS

Categories

(Web Compatibility :: Site Reports, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hsteen, Assigned: adamopenweb, Mentored)

References

()

Details

(Whiteboard: [country-all] [serversniff] [sitewait] )

Attachments

(1 file)

Attached image 049-ikea.com.png
This site uses backend browser detection, which fails to recognise Firefox OS devices as smartphones. See selected HTTP headers below:

Firefox on Android is detected and forwarded correctly:

GET / HTTP/1.1
Host: www.ikea.com
User-Agent: Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 Firefox/30.0

HTTP/1.1 302 Moved Temporarily
Content-Length: 0
Location: http://m.ikea.com/

------------------------------------------------------------------
Firefox OS is not, despite clearly having the word "Mobile" in the User-Agent header:


GET / HTTP/1.1
Host: www.ikea.com
User-Agent: Mozilla/5.0 (Mobile; rv:30.0) Gecko/30.0 Firefox/30.0

HTTP/1.1 200 OK
Content-Length: 26815
Content-Type: text/html; charset=utf-8
Set-Cookie: device=desktop; path=/; domain=.ikea.com

------------------------------------------------------------------
Whiteboard: [country-no][serversniff][contactready] → [country-no][serversniff][contactready][mentor=astevenson]
IKEA's sniffing is depending on version numbers in the UA string. A version number for Firefox/18.1 *does* get sent to m.ikea.com . .
Each version number behaves different when testing headers:

Version 26: mobile
Version 27: desktop
Version 28: mobile
Version 29: desktop
Version 30: mobile
Version 31: mobile
Reaching out to Magnus von Wachenfelt: Web Developer and Project Leader at IKEA.

https://twitter.com/MozWebCompat/status/459402745058181121
Assignee: nobody → astevenson
Status: NEW → ASSIGNED
Whiteboard: [country-no][serversniff][contactready][mentor=astevenson] → [country-no][serversniff][sitewait][mentor=astevenson]
It's fixed indeed. Our testing tool was reporting failures for the Firefox OS 1.4 UA string, but the test was buggy: it used a string with the version number "30" when it should be "30.0". That confused WURFL..
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [country-no][serversniff][sitewait][mentor=astevenson] → [country-all] [serversniff] [sitewait] [mentor=astevenson]
Mentor: astevenson
Whiteboard: [country-all] [serversniff] [sitewait] [mentor=astevenson] → [country-all] [serversniff] [sitewait]
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: