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

Issue 2889963003: Make EnabledRangeInRichlyEditableText return false for user-triggered command and unfocused selecti… (Closed)

Created:
3 years, 7 months ago by Xiaocheng
Modified:
3 years, 7 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make EnabledRangeInRichlyEditableText return false for user-triggered command and unfocused selection Certain editing commands shouldn't be enabled when they are user-triggered and the selection doesn't have focus. This patch adds checking of FrameSelection::SelectionHasFocus() in EnabledRangeInEditableText() to fix the behavior of the Unlink command. BUG=722925 TEST=editing/execCommand/unlink_with_unfocused_selection.html Review-Url: https://codereview.chromium.org/2889963003 Cr-Commit-Position: refs/heads/master@{#472696} Committed: https://chromium.googlesource.com/chromium/src/+/b2dde8c244c58dcf6d38d812ca064f911b1b0fe6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/editing/execCommand/unlink_with_unfocused_selection.html View 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 16 (12 generated)
Xiaocheng
PTAL.
3 years, 7 months ago (2017-05-18 00:09:17 UTC) #9
yosin_UTC9
lgtm
3 years, 7 months ago (2017-05-18 00:57:17 UTC) #12
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/2889963003/1
3 years, 7 months ago (2017-05-18 00:58:14 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 06:04:56 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/b2dde8c244c58dcf6d38d812ca06...

Powered by Google App Engine
This is Rietveld 408576698