Ticket #15915: 0001-Hide-circuit-display-if-pref-was-disabled-from-start.patch

File 0001-Hide-circuit-display-if-pref-was-disabled-from-start.patch, 1.1 KB (added by anonym, 5 years ago)
  • src/chrome/content/tor-circuit-display.js

    From 819b5b5ce9e93e3c8a933584acb4d95c4c69f38c Mon Sep 17 00:00:00 2001
    From: anonym <anonym@riseup.net>
    Date: Mon, 4 May 2015 11:04:29 +0200
    Subject: [PATCH] Hide circuit display if pref was disabled from start.
    
    If extensions.torbutton.display_circuit = false from the start, then
    myController will never be set, so when we call stop() we won't call
    syncDisplayWithSelectedTab(false) to hide the circuit display.
    ---
     src/chrome/content/tor-circuit-display.js | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/chrome/content/tor-circuit-display.js b/src/chrome/content/tor-circuit-display.js
    index 4197944..2da7f0a 100644
    a b let setupDisplay = function (host, port, password, enablePrefName) { 
    315315  let myController = null,
    316316      stopCollectingIsolationData = null,
    317317      stop = function() {
     318        syncDisplayWithSelectedTab(false);
    318319        if (myController) {
    319           syncDisplayWithSelectedTab(false);
    320320          if (stopCollectingIsolationData) {
    321321            stopCollectingIsolationData();
    322322          }