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

fixup! Bug 3455: Add DomainIsolator, for isolating circuit by domain.

Bug 42338: Make TorDomainIsolator.newCircuitForDomain public again
parent 7272b554
Branches
Tags
1 merge request!885Bug 42338: Make TorDomainIsolator.newCircuitForDomain public again
......@@ -224,7 +224,7 @@ class TorDomainIsolatorImpl {
newCircuitForBrowser(globalBrowser) {
const browser = globalBrowser.selectedBrowser;
const firstPartyDomain = getDomainForBrowser(browser);
this.#newCircuitForDomain(firstPartyDomain);
this.newCircuitForDomain(firstPartyDomain);
const { username, password } = this.#getSocksProxyCredentials(
firstPartyDomain,
browser.contentPrincipal.originAttributes.userContextId
......@@ -329,7 +329,7 @@ class TorDomainIsolatorImpl {
logger.info(
"tor catchall circuit has reached its maximum lifetime. Rotating."
);
this.#newCircuitForDomain(CATCHALL_DOMAIN);
this.newCircuitForDomain(CATCHALL_DOMAIN);
}
}
const { username, password } = this.#getSocksProxyCredentials(
......@@ -437,7 +437,7 @@ class TorDomainIsolatorImpl {
* @param {string?} domain The first-party domain to re-create the nonce for.
* If empty or null, the catchall domain will be used.
*/
#newCircuitForDomain(domain) {
newCircuitForDomain(domain) {
if (!domain) {
domain = CATCHALL_DOMAIN;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment