Verified Commit 3f613cc8 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame
Browse files

Bug 40458: Implement .tor.onion aliases

Show the real .onion domain on the circuit display when using a
.tor.onion alias.
parent 155294a0
......@@ -285,6 +285,12 @@ let currentCircuitData = function (browser) {
let [SOCKS_username, SOCKS_password] = credentials;
let nodeData = credentialsToNodeDataMap.get(`${SOCKS_username}|${SOCKS_password}`);
let domain = SOCKS_username;
if (".tor.onion")) {
const service = Cc[";1"].getService(
domain = service.getOnionAlias(;
return { domain, nodeData };
......@@ -154,3 +154,34 @@ cryptoSafetyPrompt.primaryAction=Reload Tab with a New Circuit
cryptoSafetyPrompt.secondaryAction=Dismiss Warning
# about:rulesets strings.
rulesets.warningTitle=Proceed with Caution
rulesets.warningDescription=Adding or modifying rulesets can cause attackers to hijack your browser. Proceed only if you know what you are doing.
rulesets.warningEnable=Warn me when I attempt to access these preferences
rulesets.warningButton=Accept the Risk and Continue
# Ruleset list
rulesets.noRulesets=No rulesets found
rulesets.noRulesetsDescr=When you save a ruleset in Tor Browser, it will show up here.
# LOCALIZATION NOTE: %S will be replaced by the update date (automatically formatted by Firefox's l10n component)
rulesets.lastUpdated=Last updated %S
rulesets.neverUpdated=Never updated, or last update failed
# Ruleset details/edit ruleset
rulesets.pathPrefix=Path Prefix
rulesets.enable=Enable this ruleset
rulesets.checkUpdates=Check for Updates
rulesets.jwkPlaceholder=The key used to sign this ruleset in the JWK (JSON Web Key) format
rulesets.jwkInvalid=The JWK could not be parsed, or it is not a valid key
rulesets.pathPrefixPlaceholder=URL prefix that contains the files needed by the ruleset
rulesets.pathPrefixInvalid=The path prefix is not a valid HTTP(S) URL
rulesets.scopePlaceholder=Regular expression for the scope of the rules
rulesets.scopeInvalid=The scope could not be parsed as a regular expression
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment