Skip to content
Snippets Groups Projects
Verified Commit d46d45b9 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 6d782db3
Branches
No related tags found
1 merge request!694Bug 41796: Rebased on top of FIREFOX_ESR_115_BASE
......@@ -14,6 +14,12 @@ const { XPCOMUtils } = ChromeUtils.import(
const lazy = {};
ChromeUtils.defineModuleGetter(
lazy,
"TorDomainIsolator",
"resource://gre/modules/TorDomainIsolator.jsm"
);
XPCOMUtils.defineLazyGetter(lazy, "cryptoSafetyBundle", () => {
return Services.strings.createBundle(
"chrome://browser/locale/cryptoSafetyPrompt.properties"
......@@ -80,7 +86,13 @@ class CryptoSafetyParent extends JSWindowActorParent {
);
if (buttonPressed === 0) {
this.browsingContext.topChromeWindow.torbutton_new_circuit();
const { browsingContext } = this.manager;
const browser = browsingContext.embedderElement;
if (browser) {
lazy.TorDomainIsolator.newCircuitForBrowser(
browser.ownerGlobal.gBrowser
);
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment