Skip to content
Snippets Groups Projects
Verified Commit beec825e 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 1ba65aa4
Branches
Tags
1 merge request!657Bug 41795: Rebased alpha on 102.12 (13.0)
......@@ -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