book.easou.com sends simplified mobile page to Firefox OS

Status

Tech Evangelism
Mobile
P5
normal
ASSIGNED
4 years ago
a year ago

People

(Reporter: hallvors, Assigned: Peipei Cheng (needinfo if you need my action))

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [mobile-compat-form][serversniff][country-cn][contactready], URL)

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Site: http://book.easou.com
book.easou.com sends simplified mobile page to Firefox OS and Firefox on Android

:: Steps To Reproduce

Backend sniffing at book.easou.com discriminates against both Firefox OS and Firefox on Android - compare these content-lengths for two Firefox and one Android stock browser requests:


GET / HTTP/1.1
Host: book.easou.com
User-Agent: Mozilla/5.0 (Mobile; rv:27.0) Gecko/27.0 Firefox/27.0

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 09 Jan 2014 06:52:18 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
Cache-Control: no-cache
mobile: 
did: 0
esid: stIDHPPrDJX
Content-Language: en-US
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Set-Cookie: uid=stIDHPPrDJX; domain=.easou.com; path=/; expires=Sun, 07-Jan-2024 06:52:18 GMT
Set-Cookie: setting=912116001016021; domain=.easou.com; path=/; expires=Sun, 07-Jan-2024 06:52:18 GMT
Set-Cookie: JSESSIONID=abcLqzlMsN1Yng48DX1nu; path=/
Content-Length: 19975

------------------------------------------------------------------
GET / HTTP/1.1
Host: book.easou.com
User-Agent: Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 09 Jan 2014 06:52:31 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
Cache-Control: no-cache
mobile: 
did: 0
esid: stIDHduKazq
Content-Language: en-US
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Set-Cookie: uid=stIDHduKazq; domain=.easou.com; path=/; expires=Sun, 07-Jan-2024 06:52:31 GMT
Set-Cookie: setting=912116001016021; domain=.easou.com; path=/; expires=Sun, 07-Jan-2024 06:52:31 GMT
Set-Cookie: JSESSIONID=abcjWr3wn0aiAeQiHX1nu; path=/
Content-Length: 18255

------------------------------------------------------------------
GET / HTTP/1.1
Host: book.easou.com
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
x-wap-profile: http://www.htcmms.com.tw/Android/Common/PJ461/ua-profile.xml
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.1.1; nb-no; HTC_One_X Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: nb-NO, en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Cookie: uid=dtIDHzmHExw; JSESSIONID=abcTRVZlVk13DdlN9W1nu; wver=ta; __utma=34727602.1802264128.1389250213.1389250213.1389250213.1; __utmb=34727602.1.10.1389250213; __utmc=34727602; __utmz=34727602.1389250213.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); Hm_lvt_79be694d4d7cf3bc5cd775cd77c05818=1389250214; Hm_lpvt_79be694d4d7cf3bc5cd775cd77c05818=1389250214

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 09 Jan 2014 06:54:20 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Vary: Accept-Encoding
User-Agent: Mozilla/5.0 (Linux; U; Android 4.1.1; nb-no; HTC_One_X Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
mobile: 
cid: 0
mid: 
did: 0
esid: stIDHIkqaKb
Content-Language: nb-NO
Content-Length: 37297

------------------------------------------------------------------


:: Expected Result

Fancy mobile site

:: Actual Result

Basic mobile site

:: Additional Information

Software Version: 1.1
Reporter's User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
(Reporter)

Updated

4 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form] → [mobile-compat-form][serversniff][country-cn][contactready]
(Reporter)

Comment 1

4 years ago
Created attachment 8357654 [details]
240-comp.png

screenshots

Comment 2

4 years ago
To be contacted so that Firefox OS and Firefox Android receives the cookie for wver=ta. Once the cookie is set the site seems to be working well. No usage of WebKit CSS which creates interop issues.


One of the triggers for this one between the fancy and the simple version of the mobile site is the version number of Android.

→ http -b GET http://book.easou.com/ "User-Agent: Android 4.1.1"  |wc 
      21    1296   40573
→ http -b GET http://book.easou.com/ "User-Agent: Android"  |wc 
       3     546   17120

And more specifically  "version >=  Android 2.2"


BUT NOT only:

Cookies:
wver = c  -> simplified mobile content 
wver = ta -> fancy mobile content


→ http -b GET http://book.easou.com/ "User-Agent:Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0" "Cookie: wver=ta"  |wc 
      21    1297   40389

→ http -b GET http://book.easou.com/ "User-Agent:Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0" "Cookie: wver=c"  |wc 
       3     546   17077

→ http -b GET http://book.easou.com/ "User-Agent:Mozilla/5.0 (Mobile; rv:27.0) Gecko/27.0 Firefox/27.0" "Cookie: wver=ta"  |wc 
      22    1257   39666

→ http -b GET http://book.easou.com/ "User-Agent:Mozilla/5.0 (Mobile; rv:27.0) Gecko/27.0 Firefox/27.0" "Cookie: wver=c"  |wc 
       3     543   16955
Assignee: nobody → yliu
Status: NEW → ASSIGNED

Comment 3

3 years ago
They now send the good version to Firefox Android.
Firefox OS still receives the simplified.
Summary: book.easou.com sends simplified mobile page to Firefox OS and Firefox on Android → book.easou.com sends simplified mobile page to Firefox OS
Assignee: yliu → pcheng

Updated

a year ago
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.