Closed Bug 966082 Opened 11 years ago Closed 11 years ago

www.nasdaq.com sends desktop site to Firefox OS

Categories

(Web Compatibility :: Site Reports, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: karlcow, Assigned: karlcow, Mentored)

References

()

Details

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

On the server side, we receive the same answers (see below). In the home page there is a script doing the redirection. if(isMobileBrowser()) { if(cookies_enabled()) { var mcindex = document.cookie.indexOf("mobileaccess=true"); if(mcindex==-1)//mobile cookie not found { window.location = "http://m.nasdaq.com"; } } else//cookies not enabled window.location = "http://m.nasdaq.com"; } And the function isMobileBrowser() is in http://www.nasdaq.com/includes/global.min-1232014v1.js function isMobileBrowser() { var b = new Array("NetFront", "Windows CE", "Android", "iPhone", "Nextel", "Alcatel 735i", "LG 8", "Samsung", "BlackBerry", "Java/1.4.1_02", "Blazer", "Palm", "SMARTPHONE", "Danger", "hiptop", "MOT", "RAZR", "AUDIOVOX", "Symbian", "Nokia", "Sony Ericsson", "Googlebot-Mobile"); var a = sanitize(navigator.userAgent.toUpperCase()); for (x in b) { if (a.indexOf(String(b[x]).toUpperCase()) > -1) { return true } } return false } So here the choice would be to add mobi to catch more mobile browsers. The list seems to be quite organic. Compare the responses to the following HTTP requests: # iOS SAFARI GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nasdaq.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: max-age=0, no-cache, no-store Connection: keep-alive Content-Encoding: gzip Content-Length: 31501 Content-Type: text/html; charset=utf-8 Date: Fri, 31 Jan 2014 00:19:58 GMT Expires: Fri, 31 Jan 2014 00:19:58 GMT Pragma: no-cache Set-Cookie: NSC_W.TJUFEFGFOEFS.OBTEBR.80=ffffffffc3a08e3545525d5f4f58455e445a4a423660;expires=Fri, 31-Jan-2014 00:29:58 GMT;path=/;httponly Vary: Accept-Encoding X-Powered-By: ASP.NET # FIREFOX OS GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nasdaq.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=0, no-cache, no-store Connection: keep-alive Content-Encoding: gzip Content-Length: 31512 Content-Type: text/html; charset=utf-8 Date: Fri, 31 Jan 2014 00:19:59 GMT Expires: Fri, 31 Jan 2014 00:19:59 GMT Pragma: no-cache Set-Cookie: NSC_W.TJUFEFGFOEFS.OBTEBR.80=ffffffffc3a08e3245525d5f4f58455e445a4a423660;expires=Fri, 31-Jan-2014 00:29:59 GMT;path=/;httponly Vary: Accept-Encoding X-Powered-By: ASP.NET # FIREFOX ANDROID GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: www.nasdaq.com User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 200 OK Cache-Control: max-age=0, no-cache, no-store Connection: keep-alive Content-Encoding: gzip Content-Length: 31512 Content-Type: text/html; charset=utf-8 Date: Fri, 31 Jan 2014 00:20:01 GMT Expires: Fri, 31 Jan 2014 00:20:01 GMT Pragma: no-cache Set-Cookie: NSC_W.TJUFEFGFOEFS.OBTEBR.80=ffffffffc3a08e3245525d5f4f58455e445a4a423660;expires=Fri, 31-Jan-2014 00:30:00 GMT;path=/;httponly Vary: Accept-Encoding X-Powered-By: ASP.NET
The mobile site is working well on Firefox OS. http://m.nasdaq.com/ So it is just a matter of receiving the same content. Trying a 1st contact on twitter. http://twitter.com/MozWebCompat/status/482043033370624000
Mentor: kdubost
Whiteboard: [clientsniff] [country-all] [contactready] → [clientsniff] [country-all] [sitewait]
Sent an email to a NASDAQ person, after receiving information through twitter. Thanks a lot to Martin.
Answer from the NASDAQ person. > Thanks for the information. We will follow-up
> We just pushed an update last night to modify the function to make use of the "mobi" token. And indeed. This is fixed! http://twitter.com/MozWebCompat/status/484856693554049024
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
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.