Commit 49a97134 authored by Mike Conley's avatar Mike Conley
Browse files

Bug 1816560 - Introduce a pref to control the visibility of the not_configured...

Bug 1816560 - Introduce a pref to control the visibility of the not_configured FxA toolbar button for experimentation. r=markh,desktop-theme-reviewers,dao

Differential Revision: https://phabricator.services.mozilla.com/D169819
parent 9bc6d21d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2345,6 +2345,7 @@ pref("browser.toolbars.bookmarks.showOtherBookmarks", true);
// quick access to sign-in and manage your Firefox Account.
pref("identity.fxaccounts.toolbar.enabled", true);
pref("identity.fxaccounts.toolbar.accessed", false);
pref("identity.fxaccounts.toolbar.defaultVisible", false);

// Prefs for different services supported by Firefox Account
pref("identity.fxaccounts.service.monitorLoginUrl", "https://monitor.firefox.com/");
+6 −4
Original line number Diff line number Diff line
@@ -705,11 +705,13 @@ toolbarbutton[constrain-size="true"][cui-areatype="panel"] > .toolbarbutton-badg
  display: none;
}

@supports not -moz-bool-pref("identity.fxaccounts.toolbar.defaultVisible") {
  /* Hide the FxA toolbar button when its in the nav-bar, until in use */
  :root[fxastatus="not_configured"] #widget-overflow-list > #fxa-toolbar-menu-button,
  :root[fxastatus="not_configured"] #nav-bar-customization-target > #fxa-toolbar-menu-button {
    display: none;
  }
}

#fxa-avatar-image,
#PanelUI-fxa-menu-account-settings-button {
+11 −0
Original line number Diff line number Diff line
@@ -949,3 +949,14 @@ cookieBannerHandling:
        - 0
        - 1
        - 2

fxaButtonVisibility:
  description: Prefs to control the visibility of the Firefox Accounts toolbar button when not signed in.
  owner: mconley@mozilla.com
  hasExposure: false
  isEarlyStartup: true
  variables:
    boolean:
      description: True if the Firefox Accounts toolbar button should be visible when not signed in.
      type: boolean
      setPref: identity.fxaccounts.toolbar.defaultVisible