Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Issue 8590022: Work around wrong UA sniffing by Yahoo! JAPAN (Closed)

Created:
9 years, 1 month ago by Yuzo
Modified:
9 years ago
Reviewers:
tony, stuartmorgan
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Work around wrong UA sniffing by Yahoo! JAPAN Some Yahoo! JAPAN pages sniff UA wrongly and reject Chrome, misjudging that Silverlight is not supported. Work around this issue by spoofing the UA as Safari on Mac and Firefox on Win for the pages. See the bug below for the justification. This workaround should be removed once the pages are fixed. BUG=104426 TEST=Open the URLs listed in the bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111877

Patch Set 1 #

Total comments: 19

Patch Set 2 : Addressed review comments #

Patch Set 3 : Addressed review comments #

Total comments: 2

Patch Set 4 : Addressed the 2nd set of comments. #

Total comments: 4

Patch Set 5 : Addressed comments on Nov 21 #

Patch Set 6 : Fixed a comment #

Total comments: 2

Patch Set 7 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -13 lines) Patch
M webkit/glue/webkit_glue.cc View 1 2 3 4 5 6 3 chunks +53 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Yuzo
Tony, can you take a look?
9 years, 1 month ago (2011-11-17 09:34:23 UTC) #1
stuartmorgan
Drive-by http://codereview.chromium.org/8590022/diff/1/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc (right): http://codereview.chromium.org/8590022/diff/1/webkit/glue/webkit_glue.cc#newcode354 webkit/glue/webkit_glue.cc:354: #if defined(OS_MACOSX) || defined(OS_WIN) Don't needlessly if-def things ...
9 years, 1 month ago (2011-11-17 09:59:17 UTC) #2
Yuzo
http://codereview.chromium.org/8590022/diff/1/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc (right): http://codereview.chromium.org/8590022/diff/1/webkit/glue/webkit_glue.cc#newcode354 webkit/glue/webkit_glue.cc:354: #if defined(OS_MACOSX) || defined(OS_WIN) On 2011/11/17 09:59:17, stuartmorgan wrote: ...
9 years, 1 month ago (2011-11-17 10:32:02 UTC) #3
stuartmorgan
http://codereview.chromium.org/8590022/diff/1/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc (right): http://codereview.chromium.org/8590022/diff/1/webkit/glue/webkit_glue.cc#newcode354 webkit/glue/webkit_glue.cc:354: #if defined(OS_MACOSX) || defined(OS_WIN) On 2011/11/17 10:32:02, Yuzo wrote: ...
9 years, 1 month ago (2011-11-17 10:50:38 UTC) #4
tony
Have we reached out to Yahoo Japan about these issues? When we did the Yahoo ...
9 years, 1 month ago (2011-11-17 18:13:05 UTC) #5
Glenn Wilson
(I believe Karen is doing the evangelism these days...) On Thu, Nov 17, 2011 at ...
9 years, 1 month ago (2011-11-17 22:12:07 UTC) #6
takuya
Yes, I reached out to Yahoo! JAPAN. They told us that they recognized this issue ...
9 years, 1 month ago (2011-11-18 01:50:30 UTC) #7
Yuzo
Hi, Stuart, Tony, I've addressed the comments. Can you take another look? http://codereview.chromium.org/8590022/diff/1/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc ...
9 years, 1 month ago (2011-11-18 07:31:44 UTC) #8
tony
http://codereview.chromium.org/8590022/diff/4003/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc (right): http://codereview.chromium.org/8590022/diff/4003/webkit/glue/webkit_glue.cc#newcode403 webkit/glue/webkit_glue.cc:403: url.host() == "gyao.yahoo.co.jp") { Please make a helper function ...
9 years, 1 month ago (2011-11-18 18:35:10 UTC) #9
tony
On 2011/11/18 01:50:30, takuya wrote: > Yes, I reached out to Yahoo! JAPAN. They told ...
9 years, 1 month ago (2011-11-18 18:36:51 UTC) #10
Yuzo
On 2011/11/18 18:36:51, tony wrote: > On 2011/11/18 01:50:30, takuya wrote: > > Yes, I ...
9 years, 1 month ago (2011-11-21 02:21:13 UTC) #11
Yuzo
Can you take yet another look? http://codereview.chromium.org/8590022/diff/4003/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc (right): http://codereview.chromium.org/8590022/diff/4003/webkit/glue/webkit_glue.cc#newcode403 webkit/glue/webkit_glue.cc:403: url.host() == "gyao.yahoo.co.jp") ...
9 years, 1 month ago (2011-11-21 02:22:01 UTC) #12
stuartmorgan
I still don't like that the two different cases are mingled together here, since it ...
9 years, 1 month ago (2011-11-21 08:17:16 UTC) #13
tony
http://codereview.chromium.org/8590022/diff/11001/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc (right): http://codereview.chromium.org/8590022/diff/11001/webkit/glue/webkit_glue.cc#newcode442 webkit/glue/webkit_glue.cc:442: "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 " Can ...
9 years, 1 month ago (2011-11-21 21:25:16 UTC) #14
Yuzo
Can you take yet another look? http://codereview.chromium.org/8590022/diff/11001/webkit/glue/webkit_glue.cc File webkit/glue/webkit_glue.cc (right): http://codereview.chromium.org/8590022/diff/11001/webkit/glue/webkit_glue.cc#newcode440 webkit/glue/webkit_glue.cc:440: // Pretend to ...
9 years ago (2011-11-28 07:00:41 UTC) #15
stuartmorgan
LGTM; I guess since they are both Silverlight-related sharing the UA code is okay. I'd ...
9 years ago (2011-11-28 08:34:45 UTC) #16
tony
LGTM2 with Stuart's nits fixed.
9 years ago (2011-11-28 17:34:46 UTC) #17
Yuzo
On 2011/11/28 17:34:46, tony wrote: > LGTM2 with Stuart's nits fixed. Tony, Stuart, thank you ...
9 years ago (2011-11-29 04:19:44 UTC) #18
commit-bot: I haz the power
9 years ago (2011-11-29 05:26:08 UTC) #19

Powered by Google App Engine
This is Rietveld 408576698