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

Issue 626183002: Fix a long standing bug with the browser window losing focus when the user scrolled on the page usi… (Closed)

Created:
6 years, 2 months ago by ananta
Modified:
6 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, mkwst+moarreviews-ipc_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix a long standing bug with the browser window losing focus when the user scrolled on the page using certain trackpad drivers. The bug occurs because the browser window receives a WM_MOUSEACTIVATE message when the trackpad is operated on the web page. There is code in the HWNDMessageHandler::OnMouseActivate function which checks if the window under the cursor is a child window and if yes it causes the focus manager to lose activation. This code was added to support activation in windowed NPAPI plugins. It causes this issue because the child window in question here is the legacy RenderWidgetHostHWND class. Fix for now is to ignore transparent child windows. Added a TODO in HWNDMessageHandler to remove the child window related code once we deprecate NPAPI plugins. BUG=351995 Committed: https://crrev.com/9d7d7494a5d2ceedde75f88ecd0bb6866044eea0 Cr-Commit-Position: refs/heads/master@{#298151}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M ui/views/win/hwnd_message_handler.cc View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
ananta
6 years, 2 months ago (2014-10-03 22:16:09 UTC) #2
sky
LGTM https://codereview.chromium.org/626183002/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/626183002/diff/1/ui/views/win/hwnd_message_handler.cc#newcode1554 ui/views/win/hwnd_message_handler.cc:1554: // transparent child windows in this bucket. Document ...
6 years, 2 months ago (2014-10-03 22:53:09 UTC) #3
ananta
https://codereview.chromium.org/626183002/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/626183002/diff/1/ui/views/win/hwnd_message_handler.cc#newcode1554 ui/views/win/hwnd_message_handler.cc:1554: // transparent child windows in this bucket. On 2014/10/03 ...
6 years, 2 months ago (2014-10-04 00:10:09 UTC) #4
ananta
6 years, 2 months ago (2014-10-04 00:10:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/626183002/20001
6 years, 2 months ago (2014-10-04 00:19:47 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as eb8661a67f65ec2fa55428955f8d3f8086b2d6c0
6 years, 2 months ago (2014-10-04 01:18:45 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-04 01:20:11 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9d7d7494a5d2ceedde75f88ecd0bb6866044eea0
Cr-Commit-Position: refs/heads/master@{#298151}

Powered by Google App Engine
This is Rietveld 408576698