Bug 1448585 - Use NS_LITERAL_STRING for DEFAULT_HOME_PAGE. r?mystor. draft
authorHenri Sivonen <hsivonen@hsivonen.fi>
Sat, 24 Mar 2018 21:12:47 +0200
changeset 772979 3b64b55f4c26f83bf8ca943c40b674dda50a394b
parent 772541 70dae03b4b0c14c8609232d2c6f83c5091ff37ca
push id104095
push userbmo:hsivonen@hsivonen.fi
push dateTue, 27 Mar 2018 06:19:38 +0000
reviewersmystor
bugs1448585
milestone61.0a1
Bug 1448585 - Use NS_LITERAL_STRING for DEFAULT_HOME_PAGE. r?mystor. MozReview-Commit-ID: tOooRnYDQG
dom/base/nsGlobalWindowOuter.cpp
--- 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