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

Issue 647047: Do not send extra blur and focus events if popup menu is showing... (Closed)

Created:
10 years, 10 months ago by Victor Wang
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw+cc_chromium.org, darin+cc_chromium.org, jam
Visibility:
Public.

Description

Do not send extra blur and focus events if popup menu is showing Add flag to RenderWidget to remember the popup menu state and suppress focus / blur events when popup menu is showing. This fixes the issue that extra focus / blur events are fired after select control is clicked. R=darin BUG=23499 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39670

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -3 lines) Patch
M chrome/renderer/render_view.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/render_widget.h View 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/renderer/render_widget.cc View 1 2 3 4 chunks +29 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Victor Wang
10 years, 10 months ago (2010-02-18 21:44:44 UTC) #1
brettw
Random style drive-by http://codereview.chromium.org/647047/diff/1/4 File chrome/renderer/render_widget.cc (right): http://codereview.chromium.org/647047/diff/1/4#newcode341 chrome/renderer/render_widget.cc:341: if (!showing_popup_menu_) { Don't use {} ...
10 years, 10 months ago (2010-02-18 22:07:36 UTC) #2
Victor Wang
http://codereview.chromium.org/647047/diff/1/4 File chrome/renderer/render_widget.cc (right): http://codereview.chromium.org/647047/diff/1/4#newcode341 chrome/renderer/render_widget.cc:341: if (!showing_popup_menu_) { On 2010/02/18 22:07:36, brettw wrote: > ...
10 years, 10 months ago (2010-02-18 22:10:35 UTC) #3
darin (slow to review)
LGTM
10 years, 10 months ago (2010-02-19 19:22:46 UTC) #4
darin (slow to review)
On 2010/02/19 19:22:46, darin wrote: > LGTM Actually, please add some comments to RenderWidget::OnSetFocus to ...
10 years, 10 months ago (2010-02-19 19:23:50 UTC) #5
darin (slow to review)
Actually, I no longer think this is the correct fix. More is needed. If I ...
10 years, 10 months ago (2010-02-19 20:08:56 UTC) #6
Victor Wang
looks like the current release version does not fire blur event in this case, I ...
10 years, 10 months ago (2010-02-20 04:01:58 UTC) #7
darin (slow to review)
In that case, feel free to commit this patch as-is, and then work on the ...
10 years, 10 months ago (2010-02-22 19:52:52 UTC) #8
Victor Wang
10 years, 10 months ago (2010-02-22 22:30:02 UTC) #9
On 2010/02/19 19:23:50, darin wrote:
> On 2010/02/19 19:22:46, darin wrote:
> > LGTM
> 
> Actually, please add some comments to RenderWidget::OnSetFocus to detail why
we
> sometimes need to suppress focus like this.
Done

Powered by Google App Engine
This is Rietveld 408576698