Closed
Bug 784478
Opened 13 years ago
Closed 11 years ago
taobao.com serves basic mobile site to Firefox for Android
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: lmandel, Assigned: yliu)
References
()
Details
(Whiteboard: [country-cn] [serversniff] [tier1] [contactready])
Attachments
(2 files)
Taobao.com serves a basic mobile site to Fennec. A much nicer touch site is served to the Android stock browser. The site appears to be UA sniffing. Spoofing the UA in Firefox to that of the Android stock browser results in the nicer touch site being served.
| Reporter | ||
Comment 1•13 years ago
|
||
Updated•13 years ago
|
Component: Evangelism → Mobile
Product: Firefox for Android → Tech Evangelism
Version: Firefox 15 → unspecified
Updated•12 years ago
|
URL: http://taobao.com
Updated•12 years ago
|
Whiteboard: [country-zh]
Updated•12 years ago
|
Whiteboard: [country-zh] → [country-cn]
Updated•12 years ago
|
Whiteboard: [country-cn] → [country-cn] [serversniff]
Comment 2•12 years ago
|
||
There is server-side detection and customization. At least for the HTTP headers.
# Firefox for Android
GET /?sprefer=sypc00 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: m.taobao.com
User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0
HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Language: zh-CN
Content-Type: text/html;charset=UTF-8
Date: Fri, 25 Oct 2013 14:00:24 GMT
Server: nginx
Set-Cookie: cna=eGfxCkpFGlwCAWkqNRgaPWOY; Domain=taobao.com; Expires=Sat, 25-Oct-2081 06:00:24 GMT; Path=/
Set-Cookie: linezing_session=aVdcKvXw5PIUdwhnh7mPOPnI_13827096245865lyw_1; Domain=taobao.com; Path=/
Set-Cookie: imewweoriw=2%2FJgTV5hW8JXp5nFTlBQmw%3D%3D; Domain=.m.taobao.com; Expires=Fri, 25-Oct-2013 18:00:24 GMT; Path=/
TBTrack-Id: du=52e23142f332346b
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-TB-BD: Generic
X-TB-M: Android
X-TB-OS: Android
# iPhone
GET /?sprefer=sypc00 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: m.taobao.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
Connection: keep-alive
Content-Encoding: gzip
Content-Language: zh-CN
Content-Type: text/html;charset=UTF-8
Date: Fri, 25 Oct 2013 14:00:34 GMT
Server: nginx
Set-Cookie: cna=gmfxCt3JgFgCAWkqNRh/IUGF; Domain=taobao.com; Expires=Sat, 25-Oct-2081 06:00:34 GMT; Path=/
Set-Cookie: linezing_session=WRb1WP4dTQgjiqlteNA1MmFn_1382709634714Poi3_1; Domain=taobao.com; Path=/
Set-Cookie: imewweoriw=2%2FhStILCOJ6JHjkpaDTDcQ%3D%3D; Domain=.m.taobao.com; Expires=Fri, 25-Oct-2013 18:00:34 GMT; Path=/
TBTrack-Id: du=584b83cdba9385fc
Transfer-Encoding: chunked
Vary: Accept-Encoding
WapVersion: aXBob25l
X-TB-BD: Apple
X-TB-M: iPhone
X-TB-OS: iPhone OS
And different content is sent
→ http -b GET "http://m.taobao.com/?sprefer=sypc00" User-Agent:"$APHUA" | wc -l #iphone
274
→ http -b GET "http://m.taobao.com/?sprefer=sypc00" User-Agent:"$FANUA" | wc -l #firefox android
550
→ http -b GET "http://m.taobao.com/?sprefer=sypc00" User-Agent:"$APHUA" | head -10 # iphone
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content="yes" name="apple-mobile-web-app-capable"/>
<meta content="yes" name="apple-touch-fullscreen"/>
<meta content="telephone=no" name="format-detection"/>
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta property="wb:webmaster" content="c51923015ca19eb1" />
→ http -b GET "http://m.taobao.com/?sprefer=sypc00" User-Agent:"$FANUA" | head -10 # firefox android
<!-- 默认版本 -->
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.2; minimum-scale=1.0; maximum-scale=2.0"/>
<title>标准版 - 手机淘宝网</title>
Summary: taobao.com serves basic mobile site to Fennec → taobao.com serves basic mobile site to Firefox for Android
Whiteboard: [country-cn] [serversniff] → [country-cn] [serversniff] [tier1] [contactready]
Comment 3•11 years ago
|
||
Taobao belongs to alibaba group https://en.wikipedia.org/wiki/Taobao
There is a touch edition is available http://m.taobao.com/?v=0&sprefer=sygd99
See Also: → 960035
Updated•11 years ago
|
Assignee: nobody → yliu
Status: NEW → ASSIGNED
Comment 5•11 years ago
|
||
yliu,
did you contact them?
This bug is fixed. We received the touch version.
The CSS sent is including Webkit CSS with old flexbox syntax.
Opened Bug 1026964
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: needinfo?(yliu)
Resolution: --- → FIXED
| Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Karl Dubost :karlcow from comment #5)
> yliu,
>
> did you contact them?
> This bug is fixed. We received the touch version.
>
> The CSS sent is including Webkit CSS with old flexbox syntax.
> Opened Bug 1026964
Hi Karl,
We didn't contact taobao. Maybe someone else contacted them and got this good result.
Flags: needinfo?(yliu)
Comment 7•10 years ago
|
||
What's happening to Taobao? If I try loading it in Fx on Android I first get the old splash screen for installing an app (I think), then a page saying:
"Windows用户请暂时点此访问旧版网页"
huh?
Flags: needinfo?(yliu)
Updated•6 years ago
|
Product: Tech Evangelism → Web Compatibility
Updated•1 year ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•