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
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -7544,17 +7544,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);
}