Closed Bug 980564 Opened 6 years ago Closed 4 years ago

newegg.com returns desktop not mobile site to Firefox Android and Firefox OS

Categories

(Web Compatibility :: Mobile, defect)

ARM
Android
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dsun218, Assigned: adamopenweb, Mentored)

References

()

Details

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

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140212131424

Steps to reproduce:

newegg.com returns desktop not mobile site to Fennec
Component: General → Mobile
OS: Windows 7 → Android
Product: Firefox for Android → Tech Evangelism
Hardware: x86 → ARM
Version: Firefox 27 → unspecified
Severity: normal → major
Component: Mobile → General
Product: Tech Evangelism → Firefox for Android
Version: unspecified → Firefox 27
Please do not set severity.
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
and please do not move bugs, I moved this to the correct component.
Component: General → Mobile
Product: Firefox for Android → Tech Evangelism
Version: Firefox 27 → unspecified
The site is not serving the proper content to some mobile devices (smartphone)

When entering http://www.newegg.com/ 
* on Firefox Android or Firefox OS, the site returns the desktop content.
* on iOS Safari, the site redirects to the mobile content.


# Technical details Summary

## iOS Safari

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.newegg.com
User-Agent:  Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; da-dk) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5

HTTP/1.1 302 Found
Accept-Ranges: bytes
Age: 0
Connection: keep-alive
Content-Length: 136
Date: Fri, 07 Mar 2014 01:14:03 GMT
Location: http://m.newegg.com
Server: NEWEGG
Server: NEG-Server
Set-Cookie: NSC_xxx.ofxfhh.dpn-WJQ=ffffffffaf18324345525d5f4f58455e445a4a4221f1;expires=Fri, 07-Mar-2014 01:44:03 GMT;path=/;httponly
Vary: Accept-Encoding
X-Cache: MISS
X-Cache-Hits: 0
X-Served-By: E412
X-Ver: 0123201401
x-server-id: 105


## Firefox OS

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

HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 116
Cache-Control: private, max-age=60
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 68592
Content-Type: text/html; charset=utf-8
Date: Fri, 07 Mar 2014 01:17:00 GMT
Expires: Fri, 07 Mar 2014 01:16:01 GMT
GA: 0
Last-Modified: Fri, 07 Mar 2014 01:15:01 GMT
NEG-Created: 3/6/2014 5:15:01 PM
Server: NEWEGG
Server: NEG-Server
Set-Cookie: NSC_xxx.ofxfhh.dpn-WJQ=ffffffffaf18324445525d5f4f58455e445a4a4221f1;expires=Fri, 07-Mar-2014 01:46:57 GMT;path=/;httponly
Vary: Accept-Encoding,Accept-Encoding
X-Cache: HIT
X-Cache-Hits: 34
X-Served-By: E415
X-Ver: 0123201401
x-server-id: 114


## Firefox Android 

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

HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 0
Cache-Control: private, max-age=60
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 68557
Content-Type: text/html; charset=utf-8
Date: Fri, 07 Mar 2014 01:17:41 GMT
Expires: Fri, 07 Mar 2014 01:18:41 GMT
GA: 0
Last-Modified: Fri, 07 Mar 2014 01:17:41 GMT
NEG-Created: 3/6/2014 5:17:41 PM
Server: NEWEGG
Server: NEG-Server
Set-Cookie: NV%5FDVINFO=; path=/
Set-Cookie: NSC_xxx.ofxfhh.dpn-WJQ=ffffffffaf18324145525d5f4f58455e445a4a4221f1;expires=Fri, 07-Mar-2014 01:47:41 GMT;path=/;httponly
Vary: Accept-Encoding,Accept-Encoding
X-Cache: MISS
X-Cache-Hits: 0
X-Served-By: E410
X-Ver: 0123201401
x-server-id: 106
Summary: newegg.com returns desktop not mobile site to Fennec → newegg.com returns desktop not mobile site to Firefox Android and Firefox OS
Whiteboard: [serversniff] [country-us] [contactready]
Suggestion for fixing the issue. Sending the same version of the site to Firefox OS and 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.

The UA string for Firefox Android has the patterns

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

but we usually recommend to identify the substring `/mobi/i` as much as possible so it will also help other browser vendors on mobile. If you are afraid to match ipad. You could match on "mobi" lowercase but not "ipad".

[1]: 
https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference#Firefox_OS
Whiteboard: [serversniff] [country-us] [contactready] → [serversniff] [country-us] [contactready][mentor=astevenson]
Contacting Newegg customer support on Twitter: https://twitter.com/MozWebCompat/status/455854469222109185
Assignee: nobody → astevenson
Status: NEW → ASSIGNED
Whiteboard: [serversniff] [country-us] [contactready][mentor=astevenson] → [serversniff] [country-us] [sitewait][mentor=astevenson]
Mentor: astevenson
Whiteboard: [serversniff] [country-us] [sitewait][mentor=astevenson] → [serversniff] [country-us] [sitewait]
See Also: → 1144221
I have sent an email to Ross Higgins who is doing UX for newegg. See also https://github.com/webcompat/web-bugs/issues/1123#issuecomment-105142413
We got an answer. Very cool

> I have forwarded your email to our tech team. 
> Thanks for bringing it to our attention. We strive 
> to give everyone the best shopping experience and 
> this will help.
Ross just told me they fixed it.
And this is FIXED!
Thanks to Ross and the technical staff of newegg. 

With Love From Mozilla.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Searching on Google for "newegg" correctly brings up m.newegg.com as the first result. However visiting newegg.com directly from the url bar does not then redirect to m.newegg.com.

Stock browser correctly redirects.
This is on 41.0a1
Reopening. We receive again the Desktop site.

* Firefox Android without version number is receiving the mobile site
* Firefox Android WITH version number is receiving the DESKTOP site
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Contacted Ross again.
This is fixed again! Very cool.
Thanks Ross.
Status: REOPENED → RESOLVED
Closed: 5 years ago4 years ago
Resolution: --- → FIXED
There are issues that I'm tracking at 
https://webcompat.com/issues/1123
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.