Loading browser/components/torconnect/TorConnectChild.sys.mjs +1 −6 Original line number Diff line number Diff line Loading @@ -60,12 +60,7 @@ export class TorConnectChild extends RemotePageChild { console.error(`Invalid redirect URL "${redirect}"`); } // Replace the destination to prevent "about:torconnect" entering the // history. // NOTE: This is done here, in the window actor, rather than in content // because we have the privilege to redirect to a "chrome:" uri here (for // when the HomePage is set to be blank). this.contentWindow.location.replace(replaceURI); this.sendQuery("torconnect:redirect", replaceURI); } actorCreated() { Loading browser/components/torconnect/TorConnectParent.sys.mjs +10 −0 Original line number Diff line number Diff line Loading @@ -112,6 +112,16 @@ export class TorConnectParent extends JSWindowActorParent { return Promise.resolve( TorConnectParent.fixupURIs(lazy.HomePage.get())[0] ); case "torconnect:redirect": this.browsingContext.top.embedderElement.loadURI( Services.io.newURI(message.data), { triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(), loadFlags: Ci.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, } ); break; case "torconnect:set-quickstart": TorConnect.quickstart = message.data; break; Loading Loading
browser/components/torconnect/TorConnectChild.sys.mjs +1 −6 Original line number Diff line number Diff line Loading @@ -60,12 +60,7 @@ export class TorConnectChild extends RemotePageChild { console.error(`Invalid redirect URL "${redirect}"`); } // Replace the destination to prevent "about:torconnect" entering the // history. // NOTE: This is done here, in the window actor, rather than in content // because we have the privilege to redirect to a "chrome:" uri here (for // when the HomePage is set to be blank). this.contentWindow.location.replace(replaceURI); this.sendQuery("torconnect:redirect", replaceURI); } actorCreated() { Loading
browser/components/torconnect/TorConnectParent.sys.mjs +10 −0 Original line number Diff line number Diff line Loading @@ -112,6 +112,16 @@ export class TorConnectParent extends JSWindowActorParent { return Promise.resolve( TorConnectParent.fixupURIs(lazy.HomePage.get())[0] ); case "torconnect:redirect": this.browsingContext.top.embedderElement.loadURI( Services.io.newURI(message.data), { triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(), loadFlags: Ci.nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY, } ); break; case "torconnect:set-quickstart": TorConnect.quickstart = message.data; break; Loading