Closed Bug 843186 Opened 11 years ago Closed 10 years ago

chevrolet.com 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-all] [serversniff] [contactready])

chevrolet.com 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.
Whiteboard: [uaoverride]
Whiteboard: [uaoverride] → [uaoverride] [country-all]
Whiteboard: [uaoverride] [country-all] → [uaoverride] [country-all] [serversniff]
Whiteboard: [uaoverride] [country-all] [serversniff] → [uaoverride] [country-all] [serversniff] [contactready]
Contacted with http://www.chevrolet.com/chevrolet/tools/promotionalapp/contactuspromoapp.do?email=cac@chevrolet.com&topic=3

# Firefox OS

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

HTTP/1.1 200 OK
Cache-Control: max-age=2731
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 19453
Content-Type: text/html;charset=utf-8
Date: Tue, 17 Sep 2013 16:09:49 GMT
Expires: Tue, 17 Sep 2013 16:55:20 GMT
Server: Apache
Set-Cookie: GMWP_location=country_code=CA,region_code=QC,city=MONTREAL,county=,zip=H1A+H1B+H1C+H1E+H1G+H1H+H1K+H1L+H1M+H1N+H1R+H1S+H1T+H1V+H1W+H1X+H1Y+H1Z+H2A+H2B+H2C+H2E+H2G+H2H+H2J+H2K+H2L+H2M+H2N+H2P+H2R+H2S+H2T+H2V+H2W+H2X+H2Y+H2Z+H3A+H3B+H3C+H3G+H3H+H3J+H3K+H3L+H3M+H3N+H3P+H3R+H3S+H3T+H3V+H3W+H3X+H3Y+H3Z+H4A+H4B+H4C+H4E+H4J+H4K+H4N+H4P+H4V+H4W+H4Z+H5A+H5B; path=/; domain=chevrolet.com
Vary: Accept-Encoding
X-UA-Compatible: IE=edge

# Firefox for Android

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

HTTP/1.1 302 Moved Temporarily
Connection: keep-alive
Content-Length: 0
Date: Tue, 17 Sep 2013 16:10:28 GMT
Location: http://m.chevrolet.com/
Server: AkamaiGHost
Set-Cookie: GMWP_location=country_code=CA,region_code=QC,city=MONTREAL,county=,zip=H1A+H1B+H1C+H1E+H1G+H1H+H1K+H1L+H1M+H1N+H1R+H1S+H1T+H1V+H1W+H1X+H1Y+H1Z+H2A+H2B+H2C+H2E+H2G+H2H+H2J+H2K+H2L+H2M+H2N+H2P+H2R+H2S+H2T+H2V+H2W+H2X+H2Y+H2Z+H3A+H3B+H3C+H3G+H3H+H3J+H3K+H3L+H3M+H3N+H3P+H3R+H3S+H3T+H3V+H3W+H3X+H3Y+H3Z+H4A+H4B+H4C+H4E+H4J+H4K+H4N+H4P+H4V+H4W+H4Z+H5A+H5B; path=/; domain=chevrolet.com
Assignee: nobody → kdubost
Whiteboard: [uaoverride] [country-all] [serversniff] [contactready] → [uaoverride] [country-all] [serversniff] [contactready] [sitewait]
Status: NEW → ASSIGNED
Let's test the Web site in a couple of weeks.

> Dear Mr. Dubost,
> 
> Thank you for contacting Chevrolet!  We appreciate the time you have taken to write us and are delighted to assist you today.
> 
> We apologize for any frustration or inconvenience you have experienced while navigating through our website.  Please know that our website works best with Internet Explorer 8 (IE8).  We are aware of the compatibility issues with other web browsers and are working to make our websites more user friendly.  Regrettably, we are unable to connect you with our website coordinator directly but will document your feedback and forward your comments to the appropriate department.
> 
> It was our pleasure to assist you today.  At Chevrolet, we strive to provide exceptional customer service.  If we can be of any further assistance please email us or call 1-800-950-2438 Monday through Friday between the hours of 8am to 9pm Eastern Time, and Saturday 9am to 6pm. Thank you for contacting Chevrolet!
> 
> Sincerely, 
> 
> The Chevrolet Marketing Team
Sent a reminder with details on how to fix it.
Whiteboard: [uaoverride] [country-all] [serversniff] [contactready] [sitewait] → [uaoverride] [country-all] [serversniff] [sitewait]
The automated testing thinks this is fixed now, but it fails on my Geeksphone - perhaps the override is breaking the fixed site now, or something? Works fine when testing in Firefox on desktop with a spoof.
Flags: needinfo?(kdubost)
This is a half-fix.
The usual common issue where the fix is too restrictive. I guess we need to publish something about this.
In this case 

Firefox OS $VERSION with $VERSION <= 18 goes to mobile and the rest to desktop. To contact again.


# FIREFOX OS 17 - MOBILE

→ http --print hH GET www.chevrolet.com "User-Agent: Mozilla/5.0 (Mobile; rv:17
.0) Gecko/17.0 Firefox/17.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.chevrolet.com
User-Agent:  Mozilla/5.0 (Mobile; rv:17.0) Gecko/17.0 Firefox/17.0

HTTP/1.1 302 Moved Temporarily
Connection: keep-alive
Content-Length: 0
Date: Fri, 07 Feb 2014 16:35:25 GMT
Location: http://m.chevrolet.com/
Server: AkamaiGHost
Set-Cookie: GMWP_location=country_code=US,region_code=CA,city=SANFRANCISCO,county=SANFRANCISCO+SANMATEO,zip=94102-94105+94107-94112+94114-94134+94137+94139-94147+94151+94153-94154+94156+94159-94164+94171-94172+94177+94188; path=/; domain=chevrolet.com


# FIREFOX OS 18 - MOBILE

→ http --print hH GET www.chevrolet.com "User-Agent: Mozilla/5.0 (Mobile; rv:18
.0) Gecko/18.0 Firefox/18.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.chevrolet.com
User-Agent:  Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 302 Moved Temporarily
Connection: keep-alive
Content-Length: 0
Date: Fri, 07 Feb 2014 16:36:18 GMT
Location: http://m.chevrolet.com/
Server: AkamaiGHost
Set-Cookie: GMWP_location=country_code=US,region_code=CA,city=HAYWARD,county=ALAMEDA,zip=94540-94545+94557; path=/; domain=chevrolet.com


# FIREFOX OS 19 - DESKTOP

→ http --print hH GET www.chevrolet.com "User-Agent: Mozilla/5.0 (Mobile; rv:19
.0) Gecko/19.0 Firefox/19.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.chevrolet.com
User-Agent:  Mozilla/5.0 (Mobile; rv:19.0) Gecko/19.0 Firefox/19.0

HTTP/1.1 200 OK
Cache-Control: max-age=1669
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 12566
Content-Type: text/html;charset=utf-8
Date: Fri, 07 Feb 2014 16:35:39 GMT
Expires: Fri, 07 Feb 2014 17:03:28 GMT
Server: Apache
Set-Cookie: GMWP_location=country_code=US,region_code=CA,city=SANFRANCISCO,county=SANFRANCISCO+SANMATEO,zip=94102-94105+94107-94112+94114-94134+94137+94139-94147+94151+94153-94154+94156+94159-94164+94171-94172+94177+94188; path=/; domain=chevrolet.com
Vary: Accept-Encoding
X-UA-Compatible: IE=edge
Flags: needinfo?(kdubost)
Whiteboard: [uaoverride] [country-all] [serversniff] [sitewait] → [uaoverride] [country-all] [serversniff] [contactready]
See Comment #5 and Comment #1 for HTTP requests  

So after checking a bit more into details and trying a few version number.
  Mozilla/5.0 (Mobile; rv:$VERSION) Gecko/$VERSION Firefox/$VERSION

These trigger the mobile version:
  Mozilla/5.0 (Mobile; rv:17.0) Gecko/17.0 Firefox/17.0
  Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

This too
  Mozilla/5.0 (Mobile; FooBar; rv:18.0) Gecko/18.0 Firefox/18.0

But everything which is $VERSION < 17  or $VERSION > 18, gives desktop site.

I guess the detection framework is not very resistant. I encouraged last time to detect
   i/mobi/ 
or i/mobi.*firefox/ (if afraid to catch more things)
Contacted again Chevrolet.
See Also: → 978658
This is fixed. :)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 978663
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.