Loading mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java +2 −2 Original line number Diff line number Diff line Loading @@ -2768,8 +2768,8 @@ public class GeckoSession { * @return The circuit information as a {@link GeckoResult} object. */ @AnyThread public @NonNull GeckoResult<GeckoBundle> getTorCircuit() { return mEventDispatcher.queryBundle("GeckoView:GetTorCircuit"); public @NonNull GeckoResult<GeckoBundle> getTorCircuits() { return mEventDispatcher.queryBundle("GeckoView:GetTorCircuits"); } /** Loading mobile/shared/modules/geckoview/GeckoViewContent.sys.mjs +5 −5 Original line number Diff line number Diff line Loading @@ -301,8 +301,8 @@ export class GeckoViewContent extends GeckoViewModule { case "GeckoView:ProcessBackPressed": this._processBackPressed(aCallback); break; case "GeckoView:GetTorCircuit": this._getTorCircuit(aCallback); case "GeckoView:GetTorCircuits": this._getTorCircuits(aCallback); break; case "GeckoView:NewTorCircuit": this._newTorCircuit(aCallback); Loading Loading @@ -476,15 +476,15 @@ export class GeckoViewContent extends GeckoViewModule { } } _getTorCircuit(aCallback) { _getTorCircuits(aCallback) { if (this.browser && aCallback) { const domain = lazy.TorDomainIsolator.getDomainForBrowser(this.browser); const nodes = lazy.TorDomainIsolator.getCircuit( const circuits = lazy.TorDomainIsolator.getCircuits( this.browser, domain, this.browser.contentPrincipal.originAttributes.userContextId ); aCallback?.onSuccess({ domain, nodes }); aCallback?.onSuccess({ domain, circuits }); } else { aCallback?.onSuccess(null); } Loading Loading
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java +2 −2 Original line number Diff line number Diff line Loading @@ -2768,8 +2768,8 @@ public class GeckoSession { * @return The circuit information as a {@link GeckoResult} object. */ @AnyThread public @NonNull GeckoResult<GeckoBundle> getTorCircuit() { return mEventDispatcher.queryBundle("GeckoView:GetTorCircuit"); public @NonNull GeckoResult<GeckoBundle> getTorCircuits() { return mEventDispatcher.queryBundle("GeckoView:GetTorCircuits"); } /** Loading
mobile/shared/modules/geckoview/GeckoViewContent.sys.mjs +5 −5 Original line number Diff line number Diff line Loading @@ -301,8 +301,8 @@ export class GeckoViewContent extends GeckoViewModule { case "GeckoView:ProcessBackPressed": this._processBackPressed(aCallback); break; case "GeckoView:GetTorCircuit": this._getTorCircuit(aCallback); case "GeckoView:GetTorCircuits": this._getTorCircuits(aCallback); break; case "GeckoView:NewTorCircuit": this._newTorCircuit(aCallback); Loading Loading @@ -476,15 +476,15 @@ export class GeckoViewContent extends GeckoViewModule { } } _getTorCircuit(aCallback) { _getTorCircuits(aCallback) { if (this.browser && aCallback) { const domain = lazy.TorDomainIsolator.getDomainForBrowser(this.browser); const nodes = lazy.TorDomainIsolator.getCircuit( const circuits = lazy.TorDomainIsolator.getCircuits( this.browser, domain, this.browser.contentPrincipal.originAttributes.userContextId ); aCallback?.onSuccess({ domain, nodes }); aCallback?.onSuccess({ domain, circuits }); } else { aCallback?.onSuccess(null); } Loading