[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #28640 [Applications/Tor Browser]: System addon does not override app-profile addon
#28640: System addon does not override app-profile addon
--------------------------------------+-----------------------------------
Reporter: sysrqb | Owner: tbb-team
Type: defect | Status: needs_information
Priority: Very High | Milestone:
Component: Applications/Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: tbb-mobile | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------------------+-----------------------------------
Changes (by sysrqb):
* status: new => needs_information
Comment:
I think it is intentional that the app profile extensions override the
system addon: [https://gitweb.torproject.org/tor-
browser.git/tree/toolkit/mozapps/extensions/internal/XPIProvider.jsm#n2105
in XPIProvider] - at least this is how I am reading it.
I wonder if we should do something slightly hacky. In the
`PostUpdateHandler`, when the system extensions are copied into the
`features/` dir, we check if the same addon is already installed in the
profile, and we uninstall it if it is found. (I don't know how to initiate
an uninstall of an addon from Java - [https://gitweb.torproject.org/tor-
browser.git/tree/mobile/android/chrome/content/aboutAddons.js#n344 the
javascript is context sensitive] - plus it requires another restart before
it is it fully uninstalled, but that's another problem).
The third problem is preferences.json isn't copied from the apk into the
app's data directory. I think this is because the the app
[https://gitweb.torproject.org/tor-
browser.git/tree/mobile/android/base/java/org/mozilla/gecko/distribution/Distribution.java#n520
sets a preference] (`distribution_state`) when initialization completes,
and then it [https://gitweb.torproject.org/tor-
browser.git/tree/mobile/android/base/java/org/mozilla/gecko/distribution/Distribution.java#n491
never copies new files] from newer APKs during an update.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28640#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs