Bug 1448585 - Use NS_LITERAL_STRING for DEFAULT_HOME_PAGE. r?mystor.
MozReview-Commit-ID: tOooRnYDQG
--- a/dom/base/nsGlobalWindowOuter.cpp
+++ b/dom/base/nsGlobalWindowOuter.cpp
@@ -4978,17 +4978,17 @@ nsGlobalWindowOuter::HomeOuter(nsIPrinci
nsAutoString homeURL;
Preferences::GetLocalizedString(PREF_BROWSER_STARTUP_HOMEPAGE, homeURL);
if (homeURL.IsEmpty()) {
// if all else fails, use this
#ifdef DEBUG_seth
printf("all else failed. using %s as the home page\n", DEFAULT_HOME_PAGE);
#endif
- CopyASCIItoUTF16(DEFAULT_HOME_PAGE, homeURL);
+ homeURL = NS_LITERAL_STRING(DEFAULT_HOME_PAGE);
}
#ifdef MOZ_PHOENIX
{
// Firefox lets the user specify multiple home pages to open in
// individual tabs by separating them with '|'. Since we don't
// have the machinery in place to easily open new tabs from here,
// simply truncate the homeURL at the first '|' character to