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

Issue 2270663002: Selection API of INPUT/TEXTAREA should not update FrameSelection without focusing. (Closed)

Created:
4 years, 4 months ago by tkent
Modified:
4 years, 4 months ago
Reviewers:
yoichio, yosin_UTC9
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dcheng, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Selection API of INPUT/TEXTAREA should not update FrameSelection without focusing. We had an option SelectionOption::ChangeSelection, which updates FrameSelection regardless of focus state. It's harmful because it caused focus-FrameSelection mismatch. We don't need such option, and ChangeSelectionIfFocused should be the default. This CL needs to update many layout tests because they assumed setSelectionRange() updated FrameSelection. BUG=637860 Committed: https://crrev.com/530015339e3f6572d239432b69f77ebca1492f73 Cr-Commit-Position: refs/heads/master@{#413695}

Patch Set 1 #

Patch Set 2 : Adjust more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/deleting/5290534.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/inserting/4960120-1.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-copy-text.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-input-textarea.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-url-text.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/pasting-tabs.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/4975120.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/5497643.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/drag-text-delay.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/programmatic-selection-on-mac-is-directionless.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/stay-in-textarea.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/context-no-deselect.html View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/selection-setSelectionRange-frameselection.html View 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/text/input-delete.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/textarea/paste-into-textarea.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-arrow-navigation.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTextFormControlElement.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/data/move_range_selection_extent_input_field.html View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
tkent
yoichio@, yosin@, would you review this please? Note that converting affected tests to testharness.js is ...
4 years, 4 months ago (2016-08-23 05:48:32 UTC) #7
yosin_UTC9
lgtm Awesome! Thanks for quick finding of root cause and fixing!
4 years, 4 months ago (2016-08-23 06:01:36 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/2270663002/40001
4 years, 4 months ago (2016-08-23 08:28:23 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 4 months ago (2016-08-23 08:33:24 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 08:34:52 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/530015339e3f6572d239432b69f77ebca1492f73
Cr-Commit-Position: refs/heads/master@{#413695}

Powered by Google App Engine
This is Rietveld 408576698