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

Issue 1776903003: Do not use setInnerText in INPUT / TEXTAREA (Closed)

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

Description

Do not use setInnerText in INPUT / TEXTAREA. Use replaceChildrenWithText instead. This means we don't produce <br> in shadow editing elements of TEXTAREA on setting value. This change is basically not user-visible except TEXTAREAs with unusual white-space values. Such TEXTAREAs are already broken and we'll fix them soon. BUG=268807, 593184 R=yosin@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/764e6bb1b05458cde3ca0702ceb801d25c3dcc3b

Patch Set 1 : #

Patch Set 2 : Fix some test failures #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -262 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-preline-eol-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/input/reveal-caret-of-multiline-input-expected.txt View 1 chunk +33 lines, -63 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/basic-textareas-quirks-expected.txt View 1 chunk +48 lines, -90 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-scroll-height-expected.txt View 1 chunk +24 lines, -39 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-scrollbar-expected.txt View 2 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-scrolled-focus-ring-expected.txt View 1 chunk +6 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-scrolled-mask-expected.txt View 1 chunk +5 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-scrolled-type-expected.txt View 1 chunk +22 lines, -41 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-width-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp View 1 2 chunks +6 lines, -1 line 1 comment Download

Messages

Total messages: 18 (11 generated)
tkent
yosin@, would you review this please?
4 years, 9 months ago (2016-03-09 08:20:45 UTC) #5
yosin_UTC9
lgtm
4 years, 9 months ago (2016-03-09 08:33:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776903003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776903003/40001
4 years, 9 months ago (2016-03-09 08:33:37 UTC) #9
tkent
https://codereview.chromium.org/1776903003/diff/60001/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp File third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp (right): https://codereview.chromium.org/1776903003/diff/60001/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp#newcode640 third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp:640: if (value.isEmpty()) I added this code after yosin's lgtm. ...
4 years, 9 months ago (2016-03-10 00:57:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776903003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776903003/60001
4 years, 9 months ago (2016-03-10 00:57:40 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/764e6bb1b05458cde3ca0702ceb801d25c3dcc3b Cr-Commit-Position: refs/heads/master@{#380313}
4 years, 9 months ago (2016-03-10 02:34:06 UTC) #16
tkent
4 years, 9 months ago (2016-03-10 02:34:47 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:60001) manually as
764e6bb1b05458cde3ca0702ceb801d25c3dcc3b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698