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

Issue 258953002: Caret position after updating value IDL attribute of unfocused INPUT element is incompatible (Closed)

Created:
6 years, 8 months ago by harpreet.sk
Modified:
6 years, 5 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, ojan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Caret position after updating value IDL attribute of unfocused INPUT element is incompatible The caret position after updating value IDL attribute of unfocused INPUT element is incompatible. When the value IDL attribute is updated of unfocused INPUT element the caret moves at the end but other browser move the caret at the beginning of the value. The other browsers move the caret to the end of the value only if the INPUT is focused. This patch removes this bug by removing the line which set the cached selection start and end with the length of the value. BUG=133242

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M Source/core/html/forms/TextFieldInputType.cpp View 1 chunk +0 lines, -2 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
harpreet.sk
Please take a look. If it is ok then i will add the layout test ...
6 years, 8 months ago (2014-04-27 14:31:21 UTC) #1
tkent
Please add a test https://codereview.chromium.org/258953002/diff/1/Source/core/html/forms/TextFieldInputType.cpp File Source/core/html/forms/TextFieldInputType.cpp (left): https://codereview.chromium.org/258953002/diff/1/Source/core/html/forms/TextFieldInputType.cpp#oldcode164 Source/core/html/forms/TextFieldInputType.cpp:164: input->cacheSelectionInResponseToSetValue(max); What happens if selectionStart=selectionEnd=3 ...
6 years, 8 months ago (2014-04-28 00:33:39 UTC) #2
harpreet.sk
https://codereview.chromium.org/258953002/diff/1/Source/core/html/forms/TextFieldInputType.cpp File Source/core/html/forms/TextFieldInputType.cpp (left): https://codereview.chromium.org/258953002/diff/1/Source/core/html/forms/TextFieldInputType.cpp#oldcode164 Source/core/html/forms/TextFieldInputType.cpp:164: input->cacheSelectionInResponseToSetValue(max); On 2014/04/28 00:33:40, tkent wrote: > What happens ...
6 years, 7 months ago (2014-04-28 16:07:54 UTC) #3
harpreet.sk
6 years, 5 months ago (2014-07-08 08:51:02 UTC) #4
This bug has been solved in the following revision
https://src.chromium.org/viewvc/blink?view=rev&revision=177651

Hence closing this issue.

Powered by Google App Engine
This is Rietveld 408576698