Commit 88abb735 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

TB 40926: Implemented the New Identity feature

parent eea2a800
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -130,6 +130,7 @@ pref("extensions.torlauncher.bridgedb_targets", "https://1723079976.rsc.cdn77.or
pref("extensions.torlauncher.moat_service", "https://bridges.torproject.org/moat");
pref("extensions.torlauncher.moat_service", "https://bridges.torproject.org/moat");


// Log levels
// Log levels
pref("browser.new_identity.log_level", "Info");
pref("browser.tor_provider.log_level", "Warn");
pref("browser.tor_provider.log_level", "Warn");
pref("browser.tor_provider.cp_log_level", "Warn");
pref("browser.tor_provider.cp_log_level", "Warn");
pref("lox.log_level", "Warn");
pref("lox.log_level", "Warn");
+6 −0
Original line number Original line Diff line number Diff line
@@ -68,6 +68,12 @@
                     key="key_privatebrowsing"
                     key="key_privatebrowsing"
                     command="Tools:PrivateBrowsing"/>
                     command="Tools:PrivateBrowsing"/>
      <toolbarseparator/>
      <toolbarseparator/>
      <toolbarbutton id="appMenu-new-identity"
                     class="subviewbutton"
                     data-l10n-id="appmenuitem-new-identity"
                     key="new-identity-key"
                     command="cmd_newIdentity"/>
      <toolbarseparator/>
      <toolbarbutton id="appMenu-bookmarks-button"
      <toolbarbutton id="appMenu-bookmarks-button"
                     class="subviewbutton subviewbutton-nav"
                     class="subviewbutton subviewbutton-nav"
                     data-l10n-id="library-bookmarks-menu"
                     data-l10n-id="library-bookmarks-menu"
+6 −0
Original line number Original line Diff line number Diff line
@@ -25,6 +25,12 @@
                <menuitem id="menu_newPrivateWindow"
                <menuitem id="menu_newPrivateWindow"
                          command="Tools:PrivateBrowsing"
                          command="Tools:PrivateBrowsing"
                          key="key_privatebrowsing" data-l10n-id="menu-file-new-private-window"/>
                          key="key_privatebrowsing" data-l10n-id="menu-file-new-private-window"/>
                <menuseparator/>
                <menuitem id="menu_newIdentity"
                          command="cmd_newIdentity"
                          key="new-identity-key"
                          data-l10n-id="menu-new-identity"/>
                <menuseparator/>
                <menuitem id="menu_openLocation"
                <menuitem id="menu_openLocation"
                          hidden="true"
                          hidden="true"
                          command="Browser:OpenLocation"
                          command="Browser:OpenLocation"
+3 −0
Original line number Original line Diff line number Diff line
@@ -122,6 +122,8 @@
#ifdef XP_MACOSX
#ifdef XP_MACOSX
    <command id="zoomWindow" data-l10n-id="window-zoom-command" />
    <command id="zoomWindow" data-l10n-id="window-zoom-command" />
#endif
#endif

    <command id="cmd_newIdentity" />
  </commandset>
  </commandset>
#include ../../components/places/content/placesCommands.inc.xhtml
#include ../../components/places/content/placesCommands.inc.xhtml
  <commandset id="splitViewCommands">
  <commandset id="splitViewCommands">
@@ -431,4 +433,5 @@
         modifiers="accel,alt"
         modifiers="accel,alt"
         internal="true"/>
         internal="true"/>
#endif
#endif
    <key id="new-identity-key" modifiers="accel shift" key="U" command="cmd_newIdentity"/>
  </keyset>
  </keyset>
+3 −0
Original line number Original line Diff line number Diff line
@@ -298,6 +298,9 @@ document.addEventListener(
          case "zoomWindow":
          case "zoomWindow":
            zoomWindow();
            zoomWindow();
            break;
            break;
          case "cmd_newIdentity":
            NewIdentityButton.onCommand(event);
            break;
        }
        }
      });
      });


Loading