ma1 pushed to branch firefox-android-115.2.1-13.0-1 at The Tor Project / Applications / firefox-android
Commits:
cb98e7b2 by hackademix at 2024-01-08T19:54:56+01:00
fixup! Modify add-on support
Bug 42353: Fix NoScript automatic updates.
- - - - -
1 changed file:
- fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt
Changes:
=====================================
fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt
=====================================
@@ -136,37 +136,37 @@ object TorBrowserFeatures {
}
/**
- * If we have not done it yet, enable automatic updates for NoScript and force a
+ * Enable automatic updates for NoScript and, if we've not done it yet, force a
* one-time immediate update check, in order to upgrade old profiles and ensure we've got
* the latest stable AMO version available on first startup.
* We will do it as soon as the Tor is connected, to prevent early addonUpdater activation
* causing automatic update checks failures (components.addonUpdater being a lazy prop).
* The extension, from then on, should behave as if the user had installed it manually.
*/
- if (settings.noscriptUpdated == 0) {
- context.components.torController.registerTorListener(object : TorEvents {
- override fun onTorConnected() {
- context.components.torController.unregisterTorListener(this)
- // Enable automatic updates
- context.components.addonUpdater.registerForFutureUpdates(NOSCRIPT_ID)
- // Force an immediate update check
+ context.components.torController.registerTorListener(object : TorEvents {
+ override fun onTorConnected() {
+ context.components.torController.unregisterTorListener(this)
+ // Enable automatic updates. This must be done on every startup (tor-browser#42353)
+ context.components.addonUpdater.registerForFutureUpdates(NOSCRIPT_ID)
+ // Force a one-time immediate update check for older installations
+ if (settings.noscriptUpdated < 2) {
context.components.addonUpdater.update(NOSCRIPT_ID)
- settings.noscriptUpdated = 1
+ settings.noscriptUpdated = 2
}
+ }
- @SuppressWarnings("EmptyFunctionBlock")
- override fun onTorConnecting() {
- }
+ @SuppressWarnings("EmptyFunctionBlock")
+ override fun onTorConnecting() {
+ }
- @SuppressWarnings("EmptyFunctionBlock")
- override fun onTorStopped() {
- }
+ @SuppressWarnings("EmptyFunctionBlock")
+ override fun onTorStopped() {
+ }
- @SuppressWarnings("EmptyFunctionBlock")
- override fun onTorStatusUpdate(entry: String?, status: String?) {
- }
- })
- }
+ @SuppressWarnings("EmptyFunctionBlock")
+ override fun onTorStatusUpdate(entry: String?, status: String?) {
+ }
+ })
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/cb9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/cb9…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch main at The Tor Project / Applications / torbrowser-launcher
Commits:
7b9b5b9c by Nicolas Vigier at 2024-01-08T13:53:33+01:00
Update self.min_version to 13.0 (#9)
- - - - -
1 changed file:
- torbrowser_launcher/launcher.py
Changes:
=====================================
torbrowser_launcher/launcher.py
=====================================
@@ -72,7 +72,7 @@ class Launcher(QtWidgets.QMainWindow):
self.force_redownload = False
# This is the current version of Tor Browser, which should get updated with every release
- self.min_version = "12.0"
+ self.min_version = "13.0"
# Init launcher
self.set_state(None, "", [])
View it on GitLab: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/commit…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/commit…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch main at The Tor Project / Applications / torbrowser-launcher
Commits:
f4d2e314 by Nicolas Vigier at 2024-01-08T11:32:06+01:00
Set the TORBROWSER_LAUNCHER environment variable (#8)
Set an environment variable to make it easier for Tor Browser to see
that torbrowser-launcher is being used.
- - - - -
1 changed file:
- torbrowser_launcher/__init__.py
Changes:
=====================================
torbrowser_launcher/__init__.py
=====================================
@@ -64,6 +64,10 @@ def main():
settings = bool(args.settings)
url_list = args.url
+ # Set the TORBROWSER_LAUNCHER env variable to make it easier to
+ # detect that torbrowser-launcher is being used
+ os.environ["TORBROWSER_LAUNCHER"] = "1"
+
# Load the version and print the banner
with open(os.path.join(SHARE, "version")) as buf:
tor_browser_launcher_version = buf.read().strip()
View it on GitLab: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/commit…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/commit…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch firefox-android-115.2.1-13.5-1 at The Tor Project / Applications / firefox-android
Commits:
be02ec86 by hackademix at 2023-12-30T19:51:11+01:00
fixup! Modify add-on support
Bug 42353: Fix NoScript automatic updates.
- - - - -
1 changed file:
- fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt
Changes:
=====================================
fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt
=====================================
@@ -136,37 +136,37 @@ object TorBrowserFeatures {
}
/**
- * If we have not done it yet, enable automatic updates for NoScript and force a
+ * Enable automatic updates for NoScript and, if we've not done it yet, force a
* one-time immediate update check, in order to upgrade old profiles and ensure we've got
* the latest stable AMO version available on first startup.
* We will do it as soon as the Tor is connected, to prevent early addonUpdater activation
* causing automatic update checks failures (components.addonUpdater being a lazy prop).
* The extension, from then on, should behave as if the user had installed it manually.
*/
- if (settings.noscriptUpdated == 0) {
- context.components.torController.registerTorListener(object : TorEvents {
- override fun onTorConnected() {
- context.components.torController.unregisterTorListener(this)
- // Enable automatic updates
- context.components.addonUpdater.registerForFutureUpdates(NOSCRIPT_ID)
- // Force an immediate update check
+ context.components.torController.registerTorListener(object : TorEvents {
+ override fun onTorConnected() {
+ context.components.torController.unregisterTorListener(this)
+ // Enable automatic updates. This must be done on every startup (tor-browser#42353)
+ context.components.addonUpdater.registerForFutureUpdates(NOSCRIPT_ID)
+ // Force a one-time immediate update check for older installations
+ if (settings.noscriptUpdated < 2) {
context.components.addonUpdater.update(NOSCRIPT_ID)
- settings.noscriptUpdated = 1
+ settings.noscriptUpdated = 2
}
+ }
- @SuppressWarnings("EmptyFunctionBlock")
- override fun onTorConnecting() {
- }
+ @SuppressWarnings("EmptyFunctionBlock")
+ override fun onTorConnecting() {
+ }
- @SuppressWarnings("EmptyFunctionBlock")
- override fun onTorStopped() {
- }
+ @SuppressWarnings("EmptyFunctionBlock")
+ override fun onTorStopped() {
+ }
- @SuppressWarnings("EmptyFunctionBlock")
- override fun onTorStatusUpdate(entry: String?, status: String?) {
- }
- })
- }
+ @SuppressWarnings("EmptyFunctionBlock")
+ override fun onTorStatusUpdate(entry: String?, status: String?) {
+ }
+ })
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/be0…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/be0…
You're receiving this email because of your account on gitlab.torproject.org.