Closed Bug 843134 Opened 12 years ago Closed 12 years ago

news.google.com doesn't recognize B2G UA as mobile

Categories

(Web Compatibility :: Site Reports, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lmandel, Unassigned)

References

()

Details

(Whiteboard: [uaoverride] [country-all] [serversniff])

news.google.com serves a desktop site to B2G. Bug 823364 added an UA override for this domain. The override should be removed once the domain serves mobile content to B2G. This bug tracks the evangelism for the site to recognize the B2G UA and the removal of the override at that time.
Whiteboard: [uaoverride]
Funny details, the HTTP headers change when Mobile… aka more verbose. Set-Cookie and P3P are sent twice when iPhone and Android in the UA string. Once when Opera or Mobile. → curl -sI -A "iPhone" http://news.google.com/ | egrep -i "Set-Cookie|P3P" Set-Cookie: NID=67=GXLXmYmXDn1V4b_EEYDFNcrX5q8F25amRkQQLMhDJeYSZvqdnrcQPVCLXqH2n9j-htE1igVvzsNVFMEe28xpkCclvhDqw5p6SlULd-7AFgzR7p9o3V74UXPQ6zYfzJAU;Domain=.google.com;Path=/;Expires=Thu, 02-Jan-2014 21:36:16 GMT;HttpOnly Set-Cookie: NID=67=asiqMq7x8GI7Uf_yImT_Fs3s8j-YI5P3i8Tm27r2wHgDPcDdJKvslzEbx2bdXelBV9tPnstR2AJ5vSdj7LqNxz641KwdKLfeIKO4wcq8a93kwkQzdoGDP_6E4_t4Lx90;Domain=.google.com;Path=/;Expires=Thu, 02-Jan-2014 21:36:16 GMT;HttpOnly P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." → curl -sI -A "Android" http://news.google.com/ | egrep -i "Set-Cookie|P3P" Set-Cookie: NID=67=ORTPzTWuBQlRjBvVtAufcX7qlTubFo54nZDSwKWqDoDJ7M-EuIi5vLh9MeKz6xa6xyM5sywBtXNd9veu3yEdZU3JHaDjxlJm94oVeVklloYGJJFOUVxOb3VNAZiBDoX2;Domain=.google.com;Path=/;Expires=Thu, 02-Jan-2014 21:36:29 GMT;HttpOnly Set-Cookie: NID=67=jh4j_vJXuesJ1m2zd-Fp8wR-dwWNymtCcSe96ITDyBU6qAObSQzRIk-Xe9dwn08JbtRGnps_EoK4UHgVpfifEOY5khFFDSHDeHwd_8z4va3-bWCpieMdkTt6GEzjMvWA;Domain=.google.com;Path=/;Expires=Thu, 02-Jan-2014 21:36:29 GMT;HttpOnly P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." → curl -sI -A "Mobile" http://news.google.com/ | egrep -i "Set-Cookie|P3P" Set-Cookie: NID=67=JSUHkw0Sr4H__haFT5q5OOqic0ZyX7Goj5uHBNuEzNnH_CgMqSDM_n2G_l1sRDdD81ajcnkKcc1VFFrkPKCqYFlUE-Qrco-EvcKkk91YOWs1wWTfE88QHBHnPuKm9NGP;Domain=.google.com;Path=/;Expires=Thu, 02-Jan-2014 21:36:37 GMT;HttpOnly P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." → curl -sI -A "Opera" http://news.google.com/ | egrep -i "Set-Cookie|P3P" Set-Cookie: NID=67=YF4ZylTsHfuwfA0QnWQsRXXWg2V6Q0lwooHzwYCYO8GgBGR1N42osdDfTRbQleXi9ziMseTmRDaAvRr24Zq3kuBVYioXBVFDq7N4uWutzTuu_may6Ky6C3bDhPXiSyRF;Domain=.google.com;Path=/;Expires=Thu, 02-Jan-2014 21:36:45 GMT;HttpOnly P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." A test for knowing if the browser receives the desktop or the mobile version for news.google.com seems to be → curl -s -A "Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile " http://news.google.com/ | grep -i doctype <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> → curl -s -A "Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0" http://news.google.com/ | grep -i doctype <!DOCTYPE HTML><html >(… etc…) → curl -s -A "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://news.google.com/ | grep -i doctype <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> When the mobile detection is done the doctype changes. server-side HTTP UA sniffing. Hmm I should put a tag for different patterns.
Whiteboard: [uaoverride] → [uaoverride][uasniff-http-server]
Whiteboard: [uaoverride][uasniff-http-server] → [uaoverride]
Whiteboard: [uaoverride] → [uaoverride][uasniffserverside]
Whiteboard: [uaoverride][uasniffserverside] → [uaoverride] [country-all] [serversniff]
We now receive the WAP version. The UA override is not necessary anymore. Another bug could be opened if we think we should receive a better mobile version.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Blocks: 911260
Agreed. Let's kill the override. We need to speak with Google separately about getting access to their tier 1 content.
See Also: → 891873
Blocks: 891873
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.