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

Issue 1833843002: Popup loosing focus through keyboard events should update HTMLSelectElement display (Closed)

Created:
4 years, 9 months ago by keishi
Modified:
4 years, 8 months ago
Reviewers:
tkent
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Popup loosing focus through keyboard events should update HTMLSelectElement display Ctrl-N while a popup menu is open, causes the window to loose focus, and ViewMsg_Close is sent to the popup widget. This causes WebPagePopupImpl::close to be called. Right now this causes the popup to close without updating the display from the provisional selection (ie HTMLSelectElement::indexToSelectOnCancel) to the actual selection. WebPagePopupImpl::close should use WebPagePopupImpl::cancel to handle that case properly. Loosing focus through mouse clicks were working because we manually call cancel from the mouse event handler. Regression caused by r193034 BUG=597206 Committed: https://crrev.com/831776ec4a98f781dc8ce20bb3346538fd59b8da Cr-Commit-Position: refs/heads/master@{#383271} Committed: https://crrev.com/ae1e3ad7ec33e9e4f0d47cd37c170ef51d478752 Cr-Commit-Position: refs/heads/master@{#383691}

Patch Set 1 #

Total comments: 2

Patch Set 2 : added back the if statement #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : reverted m_widgetClient=0 position #

Patch Set 5 : Added check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 28 (9 generated)
keishi
4 years, 9 months ago (2016-03-25 07:05:17 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1833843002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1833843002/1
4 years, 9 months ago (2016-03-25 07:05:26 UTC) #4
tkent
https://codereview.chromium.org/1833843002/diff/1/third_party/WebKit/Source/web/WebPagePopupImpl.cpp File third_party/WebKit/Source/web/WebPagePopupImpl.cpp (right): https://codereview.chromium.org/1833843002/diff/1/third_party/WebKit/Source/web/WebPagePopupImpl.cpp#newcode492 third_party/WebKit/Source/web/WebPagePopupImpl.cpp:492: cancel(); Is it safe to call cancel() unconditionally? In ...
4 years, 9 months ago (2016-03-25 07:30:45 UTC) #5
tkent
On 2016/03/25 at 07:30:45, tkent wrote: > In the PopupMenuImpl::setValueAndClosePopup path, we call WebPagePopupImpl::closePopup, it ...
4 years, 9 months ago (2016-03-25 07:32:42 UTC) #6
keishi
On 2016/03/25 07:32:42, tkent wrote: > On 2016/03/25 at 07:30:45, tkent wrote: > > In ...
4 years, 9 months ago (2016-03-25 07:57:26 UTC) #7
keishi
https://codereview.chromium.org/1833843002/diff/1/third_party/WebKit/Source/web/WebPagePopupImpl.cpp File third_party/WebKit/Source/web/WebPagePopupImpl.cpp (right): https://codereview.chromium.org/1833843002/diff/1/third_party/WebKit/Source/web/WebPagePopupImpl.cpp#newcode492 third_party/WebKit/Source/web/WebPagePopupImpl.cpp:492: cancel(); On 2016/03/25 07:30:44, tkent wrote: > Is it ...
4 years, 9 months ago (2016-03-25 07:57:46 UTC) #8
tkent
lgtm https://codereview.chromium.org/1833843002/diff/20001/third_party/WebKit/Source/web/WebPagePopupImpl.cpp File third_party/WebKit/Source/web/WebPagePopupImpl.cpp (right): https://codereview.chromium.org/1833843002/diff/20001/third_party/WebKit/Source/web/WebPagePopupImpl.cpp#newcode494 third_party/WebKit/Source/web/WebPagePopupImpl.cpp:494: cancel(); I'm not sure if calling closeWidgetSoon() inside ...
4 years, 9 months ago (2016-03-25 08:06:51 UTC) #9
keishi
https://codereview.chromium.org/1833843002/diff/20001/third_party/WebKit/Source/web/WebPagePopupImpl.cpp File third_party/WebKit/Source/web/WebPagePopupImpl.cpp (right): https://codereview.chromium.org/1833843002/diff/20001/third_party/WebKit/Source/web/WebPagePopupImpl.cpp#newcode494 third_party/WebKit/Source/web/WebPagePopupImpl.cpp:494: cancel(); On 2016/03/25 08:06:51, tkent wrote: > I'm not ...
4 years, 9 months ago (2016-03-25 10:34:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1833843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1833843002/40001
4 years, 9 months ago (2016-03-25 10:34:52 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-25 11:39:13 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/831776ec4a98f781dc8ce20bb3346538fd59b8da Cr-Commit-Position: refs/heads/master@{#383271}
4 years, 9 months ago (2016-03-25 11:40:22 UTC) #16
tkent
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1841623002/ by tkent@chromium.org. ...
4 years, 8 months ago (2016-03-28 23:46:27 UTC) #17
keishi
Changed back the position to clear m_widgetClient
4 years, 8 months ago (2016-03-29 04:25:16 UTC) #18
tkent
On 2016/03/29 at 04:25:16, keishi wrote: > Changed back the position to clear m_widgetClient Did ...
4 years, 8 months ago (2016-03-29 05:10:09 UTC) #19
keishi
On 2016/03/29 05:10:09, tkent wrote: > On 2016/03/29 at 04:25:16, keishi wrote: > > Changed ...
4 years, 8 months ago (2016-03-29 06:09:04 UTC) #20
tkent
lgtm
4 years, 8 months ago (2016-03-29 06:14:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1833843002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1833843002/80001
4 years, 8 months ago (2016-03-29 07:08:49 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-29 09:17:48 UTC) #26
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 09:19:35 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ae1e3ad7ec33e9e4f0d47cd37c170ef51d478752
Cr-Commit-Position: refs/heads/master@{#383691}

Powered by Google App Engine
This is Rietveld 408576698