Pier Angelo Vendrame pushed to branch tor-browser-147.0a1-16.0-2 at The Tor 
Project / Applications / Tor Browser


Commits:
22db4d45 by clairehurst at 2026-02-02T19:03:56+01:00
fixup! [android] Modify add-on support

- - - - -


1 changed file:

- 
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt


Changes:

=====================================
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/TorBrowserFeatures.kt
=====================================
@@ -18,7 +18,9 @@ import 
mozilla.components.concept.engine.webextension.WebExtension
 import mozilla.components.concept.engine.webextension.WebExtensionRuntime
 import mozilla.components.support.webextensions.WebExtensionSupport
 import mozilla.components.support.base.log.logger.Logger
+import org.mozilla.fenix.ext.components
 import org.mozilla.fenix.ext.settings
+import org.mozilla.fenix.tor.RunOnceBootstrapped
 
 object TorBrowserFeatures {
     private val logger = Logger("torbrowser-features")
@@ -134,6 +136,17 @@ object TorBrowserFeatures {
                     logger.error("Could not install NoScript extension", 
throwable)
                 }
             )
+            // This covers the edge case of when noscript is installed but a 
newer version is available
+            // i.e. A user downloads tba, but doesn't run it or update it for 
a while but in that time
+            // a newer version of noscript is available. It also covers the 
test case of purposefully
+            // installing an older version to test the update feature.
+            context.components.torController.registerRunOnceBootstrapped(
+                object : RunOnceBootstrapped {
+                    override fun onBootstrapped() {
+                        
context.components.addonUpdater.registerForFutureUpdates(NOSCRIPT_ID)
+                    }
+                },
+            )
         }
     }
 }



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/22db4d45b9164afe29ced45284ef4a8510a4462e

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/22db4d45b9164afe29ced45284ef4a8510a4462e
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to