Verified Commit 15b45091 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

Bug 41600: Add a tor circuit display panel.

parent 90e1823b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -262,6 +262,11 @@ XPCOMUtils.defineLazyScriptGetter(
  "gSharedTabWarning",
  "chrome://browser/content/browser-webrtc.js"
);
XPCOMUtils.defineLazyScriptGetter(
  this,
  ["gTorCircuitPanel"],
  "chrome://browser/content/torCircuitPanel.js"
);

// lazy service getters

@@ -1788,6 +1793,8 @@ var gBrowserInit = {
    // Init the NewIdentityButton
    NewIdentityButton.init();

    gTorCircuitPanel.init();

    // Certain kinds of automigration rely on this notification to complete
    // their tasks BEFORE the browser window is shown. SessionStore uses it to
    // restore tabs into windows AFTER important parts like gMultiProcessBrowser
@@ -2512,6 +2519,8 @@ var gBrowserInit = {

    NewIdentityButton.uninit();

    gTorCircuitPanel.uninit();

    gAccessibilityServiceIndicator.uninit();

    if (gToolbarKeyNavEnabled) {
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
<?xml-stylesheet href="chrome://browser/skin/places/tree-icons.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/places/editBookmark.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/onionservices/onionservices.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/torCircuitPanel.css" type="text/css"?>

<!DOCTYPE window [
#include browser-doctype.inc
+1 −0
Original line number Diff line number Diff line
@@ -535,6 +535,7 @@
#include ../../components/controlcenter/content/protectionsPanel.inc.xhtml
#include ../../components/downloads/content/downloadsPanel.inc.xhtml
#include ../../../devtools/startup/enableDevToolsPopup.inc.xhtml
#include ../../components/torcircuit/content/torCircuitPanel.inc.xhtml
#include ../../components/securitylevel/content/securityLevelPanel.inc.xhtml
#include browser-allTabsMenu.inc.xhtml

+11 −0
Original line number Diff line number Diff line
@@ -168,6 +168,17 @@
                 collapsed="true">
                <image id="remote-control-icon"/>
            </box>
            <!-- We follow the surrounding code and use a
               - <xul:box role="button"> rather than a more semantic
               - <html:button>, <xul:button> or <xul:toolbarbutton> -->
            <box id="tor-circuit-button"
                 role="button"
                 class="identity-box-button"
                 align="center"
                 tooltiptext="&torbutton.circuit_display.title;"
                 hidden="true">
              <image id="tor-circuit-button-icon"/>
            </box>
            <box id="urlbar-search-button"
                 class="chromeclass-toolbar-additional"/>
            <!-- Use onclick instead of normal popup= syntax since the popup
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ DIRS += [
    "translation",
    "uitour",
    "urlbar",
    "torcircuit",
]

DIRS += ["build"]
Loading