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

Issue 2893713003: Make EnabledRangeInEditableText return false for user-triggered command and unfocused selection (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 EnabledRangeInEditableText 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 RemoveFormat command. BUG=722925 TEST=editing/execCommand/remove_format_with_unfocused_selection.html Review-Url: https://codereview.chromium.org/2893713003 Cr-Commit-Position: refs/heads/master@{#472635} Committed: https://chromium.googlesource.com/chromium/src/+/8aaa656f06ce8379a55bf81fa4cdca123ff43485

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/remove_format_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: 17 (13 generated)
Xiaocheng
PTAL.
3 years, 7 months ago (2017-05-18 00:07:48 UTC) #10
yosin_UTC9
lgtm
3 years, 7 months ago (2017-05-18 01:01:12 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/2893713003/1
3 years, 7 months ago (2017-05-18 01:01:43 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 03:29:22 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/8aaa656f06ce8379a55bf81fa4cd...

Powered by Google App Engine
This is Rietveld 408576698