Bug 1391421 - Part 2 - Make script dialogues use the Unicode domain as title. r=baku
authorJan Henning <jh+bugzilla@buttercookie.de>
Fri, 15 Sep 2017 21:05:14 +0200
changeset 431570 2394625be48336e05eefb2aa3baf78b659a6b461
parent 431569 c9bfc364426e39047b46dea407839ff3b75c7897
child 431571 458c41e006705917c1e189385422d000b405288e
push id7785
push userryanvm@gmail.com
push dateThu, 21 Sep 2017 13:39:55 +0000
treeherdermozilla-beta@06d4034a8a03 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1391421
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1391421 - Part 2 - Make script dialogues use the Unicode domain as title. r=baku At least on Android, the domain still appears in the dialogue box's title, so we want to pretty-print IDN domains there. MozReview-Commit-ID: 3MCeR4IUsuF
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -7542,17 +7542,17 @@ nsGlobalWindow::MakeScriptDialogTitle(ns
         fixedURI->GetHost(host);
 
         if (!host.IsEmpty()) {
           // if this URI has a host we'll show it. For other
           // schemes (e.g. file:) we fall back to the localized
           // generic string
 
           nsAutoCString prepath;
-          fixedURI->GetPrePath(prepath);
+          fixedURI->GetDisplayPrePath(prepath);
 
           NS_ConvertUTF8toUTF16 ucsPrePath(prepath);
           const char16_t *formatStrings[] = { ucsPrePath.get() };
           nsContentUtils::FormatLocalizedString(nsContentUtils::eCOMMON_DIALOG_PROPERTIES,
                                                 "ScriptDlgHeading",
                                                 formatStrings,
                                                 aOutTitle);
         }