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

Issue 173265: Bugfix for 2932 (Closed)

Created:
11 years, 4 months ago by Roland
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, jam, Ben Goodger (Google)
Visibility:
Public.

Description

Fix for bug 2932: Chrome should not trigger page reloading when turn off auto detect In order to fix the bug I added new interfaces to allow resetting the override encoding (including a new render message). The new logic is as follows: -) If the user turns auto-detect OFF, nothing happens (as requested in the bug description) -) If the user turns auto-detect ON, then the page is reloaded with an empty override encoding I.e., turning auto-detect on resets a previous override setting. The reverse is not true, however: specifiying a new override setting will not turn auto-detect off. BUG=2932 TEST=do the following steps, using the test file (encoding-gb18030.htm) attached to comment 14 of the original bug http://crbug.com/2932 : 1.) load the file while auto-detect is turned off -> garbage is displayed 2.) turn auto-detect on -> proper Chinese text should appear -> in the encoding menu, Chinese encoding should be highlighted 3.) turn auto-detect off -> proper Chinese text should remain -> in the encoding menu, Chinese encoding should remain highlighted 4.) choose any other encoding -> garbage is again displayed (in the new encoding) 5.) turn auto-detect on -> proper Chinese text should again appear -> in the encoding menu, Chinese should again be highlighted

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -8 lines) Patch
M chrome/browser/browser.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M webkit/glue/webview_impl.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Roland
Hi, I submitted a fix for bug 2932 ("Chrome should not trigger page reloading when ...
11 years, 4 months ago (2009-08-24 11:05:30 UTC) #1
jungshik at Google
Thank you for the CL. From a cursory look, it's reasonable, but I have to ...
11 years, 4 months ago (2009-08-25 17:15:35 UTC) #2
Roland
Thanks for reviewing my patch! I tested it mostly with the file provided in the ...
11 years, 4 months ago (2009-08-26 07:14:25 UTC) #3
jungshik at Google
Thanks a lot for the CL and the explanation. You seems to have done a ...
11 years, 4 months ago (2009-08-26 16:30:29 UTC) #4
jungshik at Google
On 2009/08/26 16:30:29, Jungshik Shin wrote: > Thanks a lot for the CL and the ...
11 years, 3 months ago (2009-09-04 21:27:03 UTC) #5
Roland
Strange indeed. Sounds like a linker error to me (had some of those recently... :p) ...
11 years, 3 months ago (2009-09-07 08:31:11 UTC) #6
Roland
Updated the patch set after merging for the changes mentioned below. (Tested under Windows) > ...
11 years, 3 months ago (2009-09-08 01:25:01 UTC) #7
jungshik at Google
With the comments below addressed, it looks good. If others are ok, I'll land the ...
11 years, 3 months ago (2009-09-08 17:29:12 UTC) #8
Roland
On 2009/09/08 17:29:12, Jungshik Shin wrote: > With the comments below addressed, it looks good. ...
11 years, 3 months ago (2009-09-09 01:55:27 UTC) #9
jungshik at Google
Brett and Johny, do you have any comment or concern? If not, I'll land this ...
11 years, 3 months ago (2009-09-09 18:45:20 UTC) #10
Johnny(Jianning) Ding
Hi Roland, Jungshik Sorry for being late response. Thanks Roland to fix this problem. I ...
11 years, 3 months ago (2009-09-10 01:52:05 UTC) #11
Roland
Hi Johnny, implementing it the way you described was my first attempt at implementing this, ...
11 years, 3 months ago (2009-09-10 05:38:56 UTC) #12
Johnny(Jianning) Ding
Hi Roland, Thanks for your detail explanation. According to your comments, the behavior you described ...
11 years, 3 months ago (2009-09-10 08:13:03 UTC) #13
Roland
On 2009/09/10 08:13:03, Johnny(Jianning) Ding wrote: > bool TextResourceDecoder::shouldAutoDetect() const > { > ... > ...
11 years, 3 months ago (2009-09-10 12:26:19 UTC) #14
jungshik at Google
On 2009/09/10 12:26:19, Roland wrote: > On 2009/09/10 08:13:03, Johnny(Jianning) Ding wrote: > > bool ...
11 years, 3 months ago (2009-09-10 18:42:25 UTC) #15
Johnny(Jianning) Ding
Roland, Jungshik Thanks for explaining the underlying reasons of this CL. The CL is LGTM ...
11 years, 3 months ago (2009-09-11 04:50:39 UTC) #16
Roland
On 2009/09/11 04:50:39, Johnny(Jianning) Ding wrote: > Roland, Jungshik > Thanks for explaining the underlying ...
11 years, 3 months ago (2009-09-11 06:44:00 UTC) #17
jungshik at Google
Thank you, Roland and Johny. Assuming that Roland will add a ui test soon (he ...
11 years, 3 months ago (2009-09-11 17:09:28 UTC) #18
Johnny(Jianning) Ding
2009/9/11 <rolandsteiner@google.com> > On 2009/09/11 04:50:39, Johnny(Jianning) Ding wrote: > >> Roland, Jungshik >> Thanks ...
11 years, 3 months ago (2009-09-11 18:41:18 UTC) #19
jungshik at Google
11 years, 3 months ago (2009-09-15 17:21:37 UTC) #20

Powered by Google App Engine
This is Rietveld 408576698