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

Issue 2869713003: Make context menu aware of hidden selection (Closed)

Created:
3 years, 7 months ago by hugoh_UTC2
Modified:
3 years, 7 months ago
Reviewers:
bokan, yosin_UTC9
CC:
blink-reviews, chromium-reviews, dtapuska+blinkwatch_chromium.org, Navid Zolghadr
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make context menu aware of hidden selection When the frame's selection is hidden, the context menu should use the focused element (not the selection) as context. BUG=715059 Expected: Context menu for <a>. Review-Url: https://codereview.chromium.org/2869713003 Cr-Commit-Position: refs/heads/master@{#471719} Committed: https://chromium.googlesource.com/chromium/src/+/ff7930cd4d17f38e69016d96024acadf8a008a4d

Patch Set 1 #

Patch Set 2 : Added a test #

Total comments: 3

Patch Set 3 : Fix nits and style #

Patch Set 4 : Add test as NeverFixTests for Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
M third_party/WebKit/LayoutTests/NeverFixTests View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (13 generated)
hugoh_UTC2
PTAL This CL depends on https://codereview.chromium.org/2841093002/ .
3 years, 7 months ago (2017-05-10 07:06:33 UTC) #2
yosin_UTC9
Code change is OK. But, we need to have a test for this change. Could ...
3 years, 7 months ago (2017-05-10 07:58:53 UTC) #3
hugoh_UTC2
I've now added a test. PTAL at PS2 :) The test ensures we don't hit ...
3 years, 7 months ago (2017-05-11 16:38:15 UTC) #4
bokan
lgtm % nit but please wait for yosin@ too https://codereview.chromium.org/2869713003/diff/20001/third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html File third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html (right): https://codereview.chromium.org/2869713003/diff/20001/third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html#newcode11 third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html:11: ...
3 years, 7 months ago (2017-05-11 22:19:15 UTC) #5
yosin_UTC9
lgtm w/ nit https://codereview.chromium.org/2869713003/diff/20001/third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html File third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html (right): https://codereview.chromium.org/2869713003/diff/20001/third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html#newcode18 third_party/WebKit/LayoutTests/fast/events/contextmenu-follows-focus.html:18: if (!window.eventSender) { nit: We found ...
3 years, 7 months ago (2017-05-12 04:25:07 UTC) #6
hugoh_UTC2
Thanks! https://codereview.chromium.org/2869713003/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2869713003/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1829 third_party/WebKit/Source/core/input/EventHandler.cpp:1829: if (!override_target_element && start.AnchorNode() && !selection.IsHidden() && I'm ...
3 years, 7 months ago (2017-05-12 10:11:25 UTC) #8
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/2869713003/60001
3 years, 7 months ago (2017-05-12 10:13:38 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/383024)
3 years, 7 months ago (2017-05-12 11:10:16 UTC) #13
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/2869713003/60001
3 years, 7 months ago (2017-05-12 11:53:51 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/452071)
3 years, 7 months ago (2017-05-12 14:00:01 UTC) #17
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/2869713003/60001
3 years, 7 months ago (2017-05-12 14:18:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/452172)
3 years, 7 months ago (2017-05-12 16:33:05 UTC) #21
hugoh_UTC2
Hmm, the new test fails on Mac and on Mac only... :/
3 years, 7 months ago (2017-05-12 21:38:08 UTC) #22
bokan
On 2017/05/12 21:38:08, hugoh_UTC2 wrote: > Hmm, the new test fails on Mac and on ...
3 years, 7 months ago (2017-05-12 21:39:35 UTC) #23
bokan
On 2017/05/12 21:39:35, bokan wrote: > On 2017/05/12 21:38:08, hugoh_UTC2 wrote: > > Hmm, the ...
3 years, 7 months ago (2017-05-12 21:40:27 UTC) #24
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/2869713003/80001
3 years, 7 months ago (2017-05-15 08:34:59 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 10:29:14 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ff7930cd4d17f38e69016d96024a...

Powered by Google App Engine
This is Rietveld 408576698