Android: New tab page always shows punycode instead of Unicode as a fallback display title. |
||||||||
Issue description
chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java has the following:
static String getTitleForDisplay(String title, String url) {
if (TextUtils.isEmpty(title) && url != null) {
Uri uri = Uri.parse(url);
String host = uri.getHost();
String path = uri.getPath();
if (host == null) host = "";
if (TextUtils.isEmpty(path) || path.equals("/")) path = "";
title = host + path;
}
return title;
If |url| passed to the function has punycode-ecnode domain names, it'll be shown without being converted to Unicode. On other platforms, IDNToUnicode() is used to convert punycode/ACE IDN to Unicode IDN.
This will only happen when a page missing <title> or non-HTML page is visited often and is featured in NTP AND has an IDN. The chance is very low. So, the priority is set to 3.
,
Mar 29 2016
Marc: could you look at this when you have some time?
,
Mar 30 2016
Sure. Not sure how soon that will be though. +jkrcal: If you're bored, feel free to pick this up.
,
Mar 3 2017
,
Mar 6 2017
,
Apr 13 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 18 2018
,
Jun 8 2018
,
Jun 8 2018
Updating the bug: The code as of comment writing lies in src/chrome/android/java/src/org/chromium/chrome/browser/ntp/TitleUtil.java link here: https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/ntp/TitleUtil.java |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by n...@chromium.org
, Mar 29 2016