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

fixup! Bug 40209: Implement Basic Crypto Safety

Use the new domain isolator interface
parent 39b5273c
Branches
Tags
1 merge request!632Bug 41741: Refactor the domain isolator and new circuit
......@@ -12,6 +12,12 @@ const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
ChromeUtils.defineModuleGetter(
this,
"TorDomainIsolator",
"resource://gre/modules/TorDomainIsolator.jsm"
);
XPCOMUtils.defineLazyGetter(this, "cryptoSafetyBundle", () => {
return Services.strings.createBundle(
"chrome://browser/locale/cryptoSafetyPrompt.properties"
......@@ -75,7 +81,11 @@ class CryptoSafetyParent extends JSWindowActorParent {
);
if (buttonPressed === 0) {
this.browsingContext.topChromeWindow.torbutton_new_circuit();
const { browsingContext } = this.manager;
const browser = browsingContext.embedderElement;
if (browser) {
TorDomainIsolator.newCircuitForBrowser(browser.ownerGlobal.gBrowser);
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment