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

Issue 2375803002: Use Unicode in Format{Origin,URL}forSecurityDisplay (Closed)

Created:
4 years, 2 months ago by jungshik at Google
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Unicode in Format{Origin,URL}forSecurityDisplay Use Unicode instead of punycode for 'host' part of URL in Format{Origin,URL}ForSecurityDisplay. This would only change the way IDN(internationalized domain name) is displayed. To be very conservative, continue to use punycode if there's any RTL characters in the domain name. See the bug for more details on this issue. Besides, change IDNToUnicode() to accept StringPiece instead of |const string&|. BUG=650760 TEST=components_unittests --gtest_filter=Format*Security* Committed: https://crrev.com/78809c4d824d07d465be71140c7951f3af84f023 Cr-Commit-Position: refs/heads/master@{#423646}

Patch Set 1 #

Patch Set 2 : keep punycode for RTL #

Patch Set 3 : add an explicit dependency on base:i18n #

Total comments: 6

Patch Set 4 : fix typos/update url to the algorithm #

Total comments: 15

Patch Set 5 : addressing review comments #

Patch Set 6 : mention {LSI, PDI} as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -12 lines) Patch
M components/url_formatter/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/url_formatter/elide_url.h View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M components/url_formatter/elide_url.cc View 1 2 3 4 5 4 chunks +13 lines, -2 lines 0 comments Download
M components/url_formatter/elide_url_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/url_formatter/url_formatter.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/url_formatter/url_formatter.cc View 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
jungshik at Google
Hello, can you take a look? Thanks
4 years, 2 months ago (2016-09-29 17:14:11 UTC) #13
Elly Fong-Jones
https://codereview.chromium.org/2375803002/diff/40001/components/url_formatter/elide_url.h File components/url_formatter/elide_url.h (right): https://codereview.chromium.org/2375803002/diff/40001/components/url_formatter/elide_url.h#newcode69 components/url_formatter/elide_url.h:69: // will still be iin ACE/punycode for now. ( ...
4 years, 2 months ago (2016-09-30 11:18:24 UTC) #17
jungshik at Google
Thank you, Elly. Comments addressed in the latest PS. https://codereview.chromium.org/2375803002/diff/40001/components/url_formatter/elide_url.h File components/url_formatter/elide_url.h (right): https://codereview.chromium.org/2375803002/diff/40001/components/url_formatter/elide_url.h#newcode69 components/url_formatter/elide_url.h:69: ...
4 years, 2 months ago (2016-09-30 19:22:14 UTC) #18
Elly Fong-Jones
lgtm
4 years, 2 months ago (2016-10-03 10:22:49 UTC) #19
felt
lgtm, but I admittedly don't know much about RTL. mgiuca, could you also review since ...
4 years, 2 months ago (2016-10-03 18:25:23 UTC) #22
Peter Kasting
Will try to get to this Tue 10/4
4 years, 2 months ago (2016-10-04 07:56:26 UTC) #23
Peter Kasting
LGTM pending decision on the RTL issue. https://codereview.chromium.org/2375803002/diff/60001/components/url_formatter/elide_url.h File components/url_formatter/elide_url.h (right): https://codereview.chromium.org/2375803002/diff/60001/components/url_formatter/elide_url.h#newcode67 components/url_formatter/elide_url.h:67: // Internationalized ...
4 years, 2 months ago (2016-10-05 01:22:01 UTC) #28
Matt Giuca
https://codereview.chromium.org/2375803002/diff/60001/components/url_formatter/elide_url.cc File components/url_formatter/elide_url.cc (right): https://codereview.chromium.org/2375803002/diff/60001/components/url_formatter/elide_url.cc#newcode131 components/url_formatter/elide_url.cc:131: // TODO(jshin): Come up with a way to show ...
4 years, 2 months ago (2016-10-05 04:58:21 UTC) #29
jungshik at Google
Thank you for taking a look. I addressed review comments and answered questions below. https://codereview.chromium.org/2375803002/diff/60001/components/url_formatter/elide_url.cc ...
4 years, 2 months ago (2016-10-06 00:27:45 UTC) #30
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/2375803002/100001
4 years, 2 months ago (2016-10-06 18:53:56 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-06 20:16:09 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 20:18:09 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/78809c4d824d07d465be71140c7951f3af84f023
Cr-Commit-Position: refs/heads/master@{#423646}

Powered by Google App Engine
This is Rietveld 408576698