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

Issue 2800383002: Stop blocking the mousedown event of left click when closing context menu. (Closed)

Created:
3 years, 8 months ago by yamaguchi
Modified:
3 years, 8 months ago
Reviewers:
fukino, michaelpg, Dan Beam
CC:
chromium-reviews, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, karandeepb
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop blocking the mousedown event of left click when closing context menu. This change will enable to choose a file and close a context menu simultaneously by a single click in the file list of the Files app. Before this change, only the mousedown event of a left click which dismisses the context menu of cr.ui was blocked its propagation. It was introduced by https://codereview.chromium.org/1431103003, which was been directed to 487194 and 507681. This change will partially remove the change made by that, however, I think Issue 507681 was resolved by the change to apps_page.js, and 487194 was done by that of title_page.js in the original change. I confirmed that the both issues doesn't reappear by this change. BUG=679982 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2800383002 Cr-Commit-Position: refs/heads/master@{#464285} Committed: https://chromium.googlesource.com/chromium/src/+/3ce9680f3fb4648e3d1ff964f25648eb01fcb579

Patch Set 1 #

Patch Set 2 : remove debug code. #

Total comments: 2

Patch Set 3 : Swallow mousedown events on Mac and Linux to be consistent with system context menus. #

Patch Set 4 : fix comment #

Total comments: 2

Patch Set 5 : Update comment to be more descriptive of the change we make. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M ui/webui/resources/js/cr/ui/context_menu_handler.js View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 42 (27 generated)
yamaguchi
To fukino: Will you review this so as to make sure this will fix the ...
3 years, 8 months ago (2017-04-10 09:54:52 UTC) #9
fukino
lgtm if you confirmed that issue 487194 and 507681 did not reappear.
3 years, 8 months ago (2017-04-11 01:49:02 UTC) #13
yamaguchi
Michael, will you review the change?
3 years, 8 months ago (2017-04-11 02:05:53 UTC) #17
michaelpg
not lgtm If I understand this change correctly, we normally stop processing left-click events that ...
3 years, 8 months ago (2017-04-11 22:05:16 UTC) #18
michaelpg
On 2017/04/11 22:05:16, michaelpg wrote: > not lgtm > > If I understand this change ...
3 years, 8 months ago (2017-04-11 22:09:17 UTC) #19
michaelpg
On 2017/04/11 22:09:17, michaelpg wrote: > On 2017/04/11 22:05:16, michaelpg wrote: > > not lgtm ...
3 years, 8 months ago (2017-04-11 23:18:50 UTC) #20
Dan Beam
On 2017/04/11 23:18:50, michaelpg wrote: > On 2017/04/11 22:09:17, michaelpg wrote: > > On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 23:34:07 UTC) #22
Dan Beam
On 2017/04/11 23:18:50, michaelpg wrote: > On 2017/04/11 22:09:17, michaelpg wrote: > > On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 23:39:41 UTC) #23
Dan Beam
https://codereview.chromium.org/2800383002/diff/20001/ui/webui/resources/js/cr/ui/context_menu_handler.js File ui/webui/resources/js/cr/ui/context_menu_handler.js (left): https://codereview.chromium.org/2800383002/diff/20001/ui/webui/resources/js/cr/ui/context_menu_handler.js#oldcode160 ui/webui/resources/js/cr/ui/context_menu_handler.js:160: } please add this code back but do something ...
3 years, 8 months ago (2017-04-11 23:43:51 UTC) #24
yamaguchi
https://codereview.chromium.org/2800383002/diff/20001/ui/webui/resources/js/cr/ui/context_menu_handler.js File ui/webui/resources/js/cr/ui/context_menu_handler.js (left): https://codereview.chromium.org/2800383002/diff/20001/ui/webui/resources/js/cr/ui/context_menu_handler.js#oldcode160 ui/webui/resources/js/cr/ui/context_menu_handler.js:160: } On 2017/04/11 23:43:51, Dan Beam wrote: > please ...
3 years, 8 months ago (2017-04-12 12:59:24 UTC) #31
Dan Beam
lgtm
3 years, 8 months ago (2017-04-12 16:07:56 UTC) #34
michaelpg
lgtm, thanks! https://codereview.chromium.org/2800383002/diff/60001/ui/webui/resources/js/cr/ui/context_menu_handler.js File ui/webui/resources/js/cr/ui/context_menu_handler.js (right): https://codereview.chromium.org/2800383002/diff/60001/ui/webui/resources/js/cr/ui/context_menu_handler.js#newcode158 ui/webui/resources/js/cr/ui/context_menu_handler.js:158: // Mac and Linux swallow 'mousedown' events ...
3 years, 8 months ago (2017-04-12 19:24:55 UTC) #35
yamaguchi
Thanks for reviewing! https://codereview.chromium.org/2800383002/diff/60001/ui/webui/resources/js/cr/ui/context_menu_handler.js File ui/webui/resources/js/cr/ui/context_menu_handler.js (right): https://codereview.chromium.org/2800383002/diff/60001/ui/webui/resources/js/cr/ui/context_menu_handler.js#newcode158 ui/webui/resources/js/cr/ui/context_menu_handler.js:158: // Mac and Linux swallow 'mousedown' ...
3 years, 8 months ago (2017-04-13 01:03:52 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2800383002/80001
3 years, 8 months ago (2017-04-13 01:06:27 UTC) #39
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 03:52:00 UTC) #42
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3ce9680f3fb4648e3d1ff964f256...

Powered by Google App Engine
This is Rietveld 408576698