Skip to content
Snippets Groups Projects

Bug 40433: Now autoconnecting if 'extensions.torlauncher.prompt_at_startup' pref is enabled

Closed morgan requested to merge morgan/tor-browser:40433_dev into tor-browser-78.11.0esr-10.5-1
3 files
+ 18
0
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -177,6 +177,13 @@ class AboutTorConnect {
}
}
async tryAutoConnect() {
let shouldConnect = await RPMSendQuery("TorShouldAutoConnect");
if (shouldConnect) {
this.connect();
}
}
restoreCopyLogVisibility() {
this.elemCopyLogButton.setAttribute("hidden", true);
}
@@ -292,6 +299,10 @@ class AboutTorConnect {
// Request the most recent bootstrap status info so that a
// TorBootstrapStatus notification is generated as soon as possible.
RPMSendAsyncMessage("TorRetrieveBootstrapStatus");
// if we have already successfully bootstrapped, then skip waiting on
// subsequent launches
this.tryAutoConnect();
}
}
Loading