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

Issue 189843008: Value sanitization for input[type=text] should not truncate a value at control character (Closed)

Created:
6 years, 9 months ago by Habib Virji
Modified:
6 years, 9 months ago
Reviewers:
keishi, tkent
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@bug196640
Visibility:
Public.

Description

Value sanitization for input[type=text] should not truncate a value at control character The new behavior is compatible with IE and Firefox. R=tkent, keishi1 BUG=261846 TEST=automated Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168989

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed control characters truncation logic to match firefox and IE behavior #

Total comments: 4

Patch Set 3 : Updated as per review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -12 lines) Patch
M LayoutTests/fast/forms/input-value-sanitization.html View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/input-value-sanitization-expected.txt View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/paste-multiline-text-input.html View 1 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/html/forms/TextFieldInputType.cpp View 1 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Habib Virji
Support for text sanitization to not remove truncate string if VT present.
6 years, 9 months ago (2014-03-07 15:51:01 UTC) #1
tkent
https://codereview.chromium.org/189843008/diff/1/Source/core/html/forms/TextFieldInputType.cpp File Source/core/html/forms/TextFieldInputType.cpp (right): https://codereview.chromium.org/189843008/diff/1/Source/core/html/forms/TextFieldInputType.cpp#newcode406 Source/core/html/forms/TextFieldInputType.cpp:406: if (current < ' ' && current != '\t' ...
6 years, 9 months ago (2014-03-07 17:26:34 UTC) #2
Habib Virji
Firefox just truncates \r and \n, which. No control character is removed from the string. ...
6 years, 9 months ago (2014-03-10 12:02:56 UTC) #3
tkent
> Control character can now be included in string as in case of IE and ...
6 years, 9 months ago (2014-03-11 04:03:06 UTC) #4
Habib Virji
Thanks for the summary. Updated. https://codereview.chromium.org/189843008/diff/20001/LayoutTests/fast/forms/input-value-sanitization.html File LayoutTests/fast/forms/input-value-sanitization.html (right): https://codereview.chromium.org/189843008/diff/20001/LayoutTests/fast/forms/input-value-sanitization.html#newcode58 LayoutTests/fast/forms/input-value-sanitization.html:58: input.value="foo\0bar"; On 2014/03/11 04:03:06, ...
6 years, 9 months ago (2014-03-11 11:17:49 UTC) #5
tkent
lgtm
6 years, 9 months ago (2014-03-11 22:40:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/189843008/40001
6 years, 9 months ago (2014-03-11 22:40:07 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 02:35:16 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-12 02:35:17 UTC) #9
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-12 03:08:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/189843008/40001
6 years, 9 months ago (2014-03-12 03:08:12 UTC) #11
commit-bot: I haz the power
Change committed as 168986
6 years, 9 months ago (2014-03-12 06:50:31 UTC) #12
tkent
On 2014/03/12 06:50:31, I haz the power (commit-bot) wrote: > Change committed as 168986 The ...
6 years, 9 months ago (2014-03-12 06:54:16 UTC) #13
tkent
A revert of this CL has been created in https://codereview.chromium.org/196413004/ by tkent@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-12 06:54:38 UTC) #14
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-12 06:57:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/189843008/40001
6 years, 9 months ago (2014-03-12 06:57:21 UTC) #16
commit-bot: I haz the power
Change committed as 168989
6 years, 9 months ago (2014-03-12 06:57:46 UTC) #17
Habib Virji
On 2014/03/12 06:54:38, tkent wrote: > A revert of this CL has been created in ...
6 years, 9 months ago (2014-03-12 10:55:02 UTC) #18
tkent
6 years, 9 months ago (2014-03-13 01:18:47 UTC) #19
Message was sent while issue was closed.
On 2014/03/12 10:55:02, Habib Virji wrote:
> On 2014/03/12 06:54:38, tkent wrote:
> > A revert of this CL has been created in
> > https://codereview.chromium.org/196413004/ by mailto:tkent@chromium.org.
> > 
> > The reason for reverting is: Wrong CL description.
> > .
> Thanks. I did update the issue, do I need to update commit log too? (Sorry for
> stupid question but want to know it for next time).

We can't update the commit log.  So I reverted r168986, which had a wrong CL
description, update the CL description in this codereview, then asked CQ to
commit it. CQ landed it as 168989.  You don't need to do nothing now.

"Description" field in a codereview will be actual commit log. "Subject" field
is not committed at all. So "Description" field must contain the summary line.

Powered by Google App Engine
This is Rietveld 408576698