Pier Angelo Vendrame pushed to branch tor-browser-102.12.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits: 5e35ef8d by Henry Wilkes at 2023-06-12T16:04:27+01:00 fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser
Bug 41836: Rename deinit to uninit.
- - - - -
2 changed files:
- browser/components/torconnect/content/torConnectTitlebarStatus.js - browser/components/torconnect/content/torConnectUrlbarButton.js
Changes:
===================================== browser/components/torconnect/content/torConnectTitlebarStatus.js ===================================== @@ -56,7 +56,7 @@ var gTorConnectTitlebarStatus = { /** * De-initialize the component. */ - deinit() { + uninit() { Services.obs.removeObserver(this._stateListener, this._observeTopic); },
===================================== browser/components/torconnect/content/torConnectUrlbarButton.js ===================================== @@ -89,7 +89,7 @@ var gTorConnectUrlbarButton = { /** * Deactivate and de-initialize the button. */ - deinit() { + uninit() { if (!this._isActive) { return; } @@ -115,7 +115,7 @@ var gTorConnectUrlbarButton = { TorConnect.state === TorConnectState.Bootstrapped || TorConnect.state === TorConnectState.Disabled ) { - this.deinit(); + this.uninit(); return; } this._updateButtonVisibility();
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5e35ef8d...