Closed Bug 784478 Opened 12 years ago Closed 10 years ago

taobao.com serves basic mobile site to Firefox for Android

Categories

(Web Compatibility :: Site Reports, defect)

ARM
Android
defect
Not set
normal

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.
Component: Evangelism → Mobile
Product: Firefox for Android → Tech Evangelism
Version: Firefox 15 → unspecified
Whiteboard: [country-zh]
Whiteboard: [country-zh] → [country-cn]
Whiteboard: [country-cn] → [country-cn] [serversniff]
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]
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
Assignee: nobody → yliu
Status: NEW → ASSIGNED
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: 10 years ago
Flags: needinfo?(yliu)
Resolution: --- → FIXED
Depends on: 1026964
(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)
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)
Maybe better to follow up in bug 1026964
Flags: needinfo?(yliu)
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.

Attachment

General

Created:
Updated:
Size: