Bug 1577458 - Add fluent branding files to Whats New Panel r=Mardak
authorAndrei Oprea <andrei.br92@gmail.com>
Thu, 29 Aug 2019 14:12:59 +0000
changeset 490629 9f021f1c28e0fe557be7b2768d41e64456a403d2
parent 490628 ee1b60bbb5103a129918f2301696a51d80bbdd16
child 490630 ff88b03d2dd92d7ecbc81f24f60a4e7ff9ddd04e
push id93954
push userelee@mozilla.com
push dateThu, 29 Aug 2019 14:14:03 +0000
treeherderautoland@9f021f1c28e0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMardak
bugs1577458
milestone70.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 1577458 - Add fluent branding files to Whats New Panel r=Mardak Differential Revision: https://phabricator.services.mozilla.com/D43964
browser/components/newtab/lib/ToolbarPanelHub.jsm
--- a/browser/components/newtab/lib/ToolbarPanelHub.jsm
+++ b/browser/components/newtab/lib/ToolbarPanelHub.jsm
@@ -90,16 +90,18 @@ class _ToolbarPanelHub {
   }
 
   get whatsNewPanelEnabled() {
     return Services.prefs.getBoolPref(WHATSNEW_ENABLED_PREF, false);
   }
 
   maybeInsertFTL(win) {
     win.MozXULElement.insertFTLIfNeeded("browser/newtab/asrouter.ftl");
+    win.MozXULElement.insertFTLIfNeeded("browser/branding/brandings.ftl");
+    win.MozXULElement.insertFTLIfNeeded("browser/branding/sync-brand.ftl");
   }
 
   // Turns on the Appmenu (hamburger menu) button for all open windows and future windows.
   async enableAppmenuButton() {
     if ((await this.messages).length) {
       EveryWindow.registerCallback(
         APPMENU_BUTTON_ID,
         this._showAppmenuButton,