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

Issue 1408833006: EmailInputType::convertEmailAddressToASCII() should not try to convert non-email addresses. (Closed)

Created:
5 years, 1 month ago by tkent
Modified:
5 years, 1 month ago
Reviewers:
keishi
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

EmailInputType::convertEmailAddressToASCII() should not try to convert non-email addresses. It seems ICU produces broken strings if an input string is not in host name format. EmailInputType::convertEmailAddressToASCII() should return the input string as is the resultant string is not valid. BUG=551551 Committed: https://crrev.com/453bf5082bba44aba93b428387e0e112c4db0dd3 Cr-Commit-Position: refs/heads/master@{#358779}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use isValidEmailAddress() instead of ad-hoc check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M third_party/WebKit/Source/core/html/forms/EmailInputType.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/EmailInputTypeTest.cpp View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
tkent
keishi, would you review this please?
5 years, 1 month ago (2015-11-09 05:43:54 UTC) #2
keishi
LGTM https://codereview.chromium.org/1408833006/diff/1/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp File third_party/WebKit/Source/core/html/forms/EmailInputType.cpp (right): https://codereview.chromium.org/1408833006/diff/1/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp#newcode69 third_party/WebKit/Source/core/html/forms/EmailInputType.cpp:69: if (host.find('@') != kNotFound || host.find(isASCIISpace) != kNotFound) ...
5 years, 1 month ago (2015-11-09 05:53:40 UTC) #3
tkent
https://codereview.chromium.org/1408833006/diff/1/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp File third_party/WebKit/Source/core/html/forms/EmailInputType.cpp (right): https://codereview.chromium.org/1408833006/diff/1/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp#newcode69 third_party/WebKit/Source/core/html/forms/EmailInputType.cpp:69: if (host.find('@') != kNotFound || host.find(isASCIISpace) != kNotFound) On ...
5 years, 1 month ago (2015-11-09 05:56:36 UTC) #4
keishi
https://codereview.chromium.org/1408833006/diff/1/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp File third_party/WebKit/Source/core/html/forms/EmailInputType.cpp (right): https://codereview.chromium.org/1408833006/diff/1/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp#newcode69 third_party/WebKit/Source/core/html/forms/EmailInputType.cpp:69: if (host.find('@') != kNotFound || host.find(isASCIISpace) != kNotFound) On ...
5 years, 1 month ago (2015-11-09 06:02:08 UTC) #5
tkent
I changed the approach a little bit. convertEmailAdressToASCII() uses isValidEmailAddress() in Patch Set 2.
5 years, 1 month ago (2015-11-09 23:47:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408833006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408833006/20001
5 years, 1 month ago (2015-11-10 01:08:43 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-10 03:25:18 UTC) #11
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 03:26:01 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/453bf5082bba44aba93b428387e0e112c4db0dd3
Cr-Commit-Position: refs/heads/master@{#358779}

Powered by Google App Engine
This is Rietveld 408576698