[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-147.0a1-16.0-2] fixup! [android] Modify add-on support



Title: GitLab

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:

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
    18 18
     import mozilla.components.concept.engine.webextension.WebExtensionRuntime
    
    19 19
     import mozilla.components.support.webextensions.WebExtensionSupport
    
    20 20
     import mozilla.components.support.base.log.logger.Logger
    
    21
    +import org.mozilla.fenix.ext.components
    
    21 22
     import org.mozilla.fenix.ext.settings
    
    23
    +import org.mozilla.fenix.tor.RunOnceBootstrapped
    
    22 24
     
    
    23 25
     object TorBrowserFeatures {
    
    24 26
         private val logger = Logger("torbrowser-features")
    
    ... ... @@ -134,6 +136,17 @@ object TorBrowserFeatures {
    134 136
                         logger.error("Could not install NoScript extension", throwable)
    
    135 137
                     }
    
    136 138
                 )
    
    139
    +            // This covers the edge case of when noscript is installed but a newer version is available
    
    140
    +            // i.e. A user downloads tba, but doesn't run it or update it for a while but in that time
    
    141
    +            // a newer version of noscript is available. It also covers the test case of purposefully
    
    142
    +            // installing an older version to test the update feature.
    
    143
    +            context.components.torController.registerRunOnceBootstrapped(
    
    144
    +                object : RunOnceBootstrapped {
    
    145
    +                    override fun onBootstrapped() {
    
    146
    +                        context.components.addonUpdater.registerForFutureUpdates(NOSCRIPT_ID)
    
    147
    +                    }
    
    148
    +                },
    
    149
    +            )
    
    137 150
             }
    
    138 151
         }
    
    139 152
     }

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx