Closed Bug 891032 Opened 11 years ago Closed 10 years ago

(SummitRacing.com) - Serving WAP to Firefox on Android

Categories

(Web Compatibility :: Site Reports, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jabba, Assigned: karlcow)

References

()

Details

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

I'm on a Samsung Galaxy S4, original T-mobile/Samsung firmware. Installed Firefox from Play Store.

When I go to summitracing.com via the url bar, or via a link from google, it downloads an html file and opens it in the HTML Viewer app on the phone (not in Firefox) and the downloaded html file is missing CSS and isn't useable.

The phone came pre-installed with Chrome and going to summitracing.com on the Chrome app opens the web site just fine, looks good and is functional for general shopping and browsing.
$ curl -ILA "Mozilla/5.0 (Android; Mobile; rv:22.0) Gecko/22.0 Firefox/22.0" summitracing.com

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 36018
Content-Type: application/vnd.wap.xhtml+xml; charset=utf-8

They are serving Content-Type: wap, which we do not render. They need to accept out user-agent to acknowledge that we are a modern browser.
So rather a Tech Evangelism bug?
Yes.
Component: General → Mobile
Product: Firefox for Android → Tech Evangelism
Version: Firefox 22 → Trunk
Summary: Visiting a website causes an html file to be downloaded instead of page being rendered → (SummitRacing.com) - Serving WAP to Firefox on Android
I've contacted them via their feedback form at https://summitracing.custhelp.com/app/feedbackpopup regarding this.
On Firefox OS and Firefox Android, we get basically a call for a WAP, which is a blank page or call for an app handling wap. (Opera Mobile Android is receiving the good content)

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.summitracing.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: 201
Date: Fri, 18 Oct 2013 22:27:49 GMT
Location: /mobiledetection?device=phone&origUrl=http://www.summitracing.com/
Server: Microsoft-IIS/7.5
Set-Cookie: ASP.NET_SessionId=zuetsj1amnl3n5vdg3wrxfac; domain=summitracing.com; path=/; HttpOnly
Set-Cookie: 51D=635177323694788041; domain=summitracing.com; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/
X-Frame-Options: SAMEORIGIN
X-Powered-By: ASP.NET

then

GET /mobiledetection?device=phone&origUrl=http://www.summitracing.com/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.summitracing.com
User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 302 Moved Temporarily
Cache-Control: private
Connection: keep-alive
Content-Length: 143
Content-Type: text/html; charset=utf-8
Date: Fri, 18 Oct 2013 22:28:27 GMT
Location: http://m.summitracing.com/
Server: Microsoft-IIS/7.5
Set-Cookie: srem=mobile; domain=summitracing.com; path=/
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
X-Powered-By: ASP.NET

then

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

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 35252
Content-Type: application/vnd.wap.xhtml+xml; charset=utf-8
Date: Fri, 18 Oct 2013 22:31:00 GMT
Server: Microsoft-IIS/7.5
Set-Cookie: sresid=8616a65f-5f8a-4b30-add2-b614a35f1579; domain=summitracing.com; expires=Sat, 18-Oct-2014 22:31:00 GMT; path=/; HttpOnly
Set-Cookie: user=EstimatorCountry%3d%26EstimatorProvince%3d%26EstimatorZip%3d%26RetailPickupSelected%3dTrue%26SelectedRetailLocation%3dNone%26IsInternationalUser%3dTrue%26HideInternationalBanner%3dFalse%26IAge%3d10%2f18%2f2013%7c6%3a31%7cPM; domain=summitracing.com; expires=Sat, 18-Oct-2014 22:31:00 GMT; path=/; HttpOnly
X-Frame-Options: SAMEORIGIN
X-Powered-By: ASP.NET


BUT on iPhone for example.

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.summitracing.com
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3

HTTP/1.1 302 Moved Temporarily
Connection: keep-alive
Content-Length: 201
Date: Fri, 18 Oct 2013 22:33:06 GMT
Location: /mobiledetection?device=phone&origUrl=http://www.summitracing.com/
Server: Microsoft-IIS/7.5
Set-Cookie: ASP.NET_SessionId=ijgenubvlzm003t1mek0xqqj; domain=summitracing.com; path=/; HttpOnly
Set-Cookie: 51D=635177326868940388; domain=summitracing.com; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/
X-Frame-Options: SAMEORIGIN
X-Powered-By: ASP.NET

then

GET /mobiledetection?device=phone&origUrl=http://www.summitracing.com/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.summitracing.com
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3

HTTP/1.1 302 Moved Temporarily
Cache-Control: private
Connection: keep-alive
Content-Length: 143
Content-Type: text/html; charset=utf-8
Date: Fri, 18 Oct 2013 22:33:43 GMT
Location: http://m.summitracing.com/
Server: Microsoft-IIS/7.5
Set-Cookie: srem=mobile; domain=summitracing.com; path=/
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
X-Powered-By: ASP.NET

then

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: m.summitracing.com
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3

HTTP/1.1 200 OK
Cache-Control: private
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Fri, 18 Oct 2013 22:34:03 GMT
Server: Microsoft-IIS/7.5
Set-Cookie: sresid=6b45bf50-6bfc-4971-8a0d-f4dda789e31b; domain=summitracing.com; expires=Sat, 18-Oct-2014 22:34:04 GMT; path=/; HttpOnly
Set-Cookie: user=EstimatorCountry%3d%26EstimatorProvince%3d%26EstimatorZip%3d%26RetailPickupSelected%3dTrue%26SelectedRetailLocation%3dNone%26IsInternationalUser%3dTrue%26HideInternationalBanner%3dFalse%26IAge%3d10%2f18%2f2013%7c6%3a34%7cPM; domain=summitracing.com; expires=Sat, 18-Oct-2014 22:34:04 GMT; path=/; HttpOnly
Transfer-Encoding: chunked
X-Frame-Options: SAMEORIGIN
X-Powered-By: ASP.NET


Clearly serverside ua detection. To be contacted.
Whiteboard: [country-us] [serversniff] [contactready]
Contacted through the form http://www.summitracing.com/expertadviceandnews/professoroverdrive/askquestion

>  Thanks for submitting your question. Use this reference number for follow up: #131213-000810
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Whiteboard: [country-us] [serversniff] [contactready] → [country-us] [serversniff] [sitewait]
Contacted them again with the issue reminder.
They had said in December 2013

> Your question has been received. You should expect a response from us 
> within 1 business day. Answers to technical questions may take up to 3
> business days.

which never happened.
seems fixed, congrats Karl!
Test keeps passing too :)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
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.