Skip to content
Snippets Groups Projects
Verified Commit b878e3c7 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in...

fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in about:preferences#connection

Bug 42343: Read built-in bridges from pt_config.json instead of
preferences.

Update the way in which we query the PTs we have bundled bridge lines
for.
parent 154b5046
Branches
Tags
1 merge request!889Bug 42366: Tor Browser 115.7.0esr alpha rebase
......@@ -3,7 +3,6 @@ import { TorStrings } from "resource://gre/modules/TorStrings.sys.mjs";
import {
TorSettings,
TorBridgeSource,
TorBuiltinBridgeTypes,
} from "resource://gre/modules/TorSettings.sys.mjs";
import {
......@@ -62,7 +61,7 @@ export class BuiltinBridgeDialog {
)) {
const radio = optionEl.querySelector("radio");
const type = radio.value;
optionEl.hidden = !TorBuiltinBridgeTypes.includes(type);
optionEl.hidden = !TorSettings.builtinBridgeTypes.includes(type);
radio.label = typeStrings[type].label;
optionEl.querySelector(
".builtin-bridges-option-description"
......
......
......@@ -867,7 +867,7 @@ const gConnectionPane = (function () {
},
init() {
this._populateXUL();
TorSettings.initializedPromise.then(() => this._populateXUL());
const onUnload = () => {
window.removeEventListener("unload", onUnload);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment