-
- Downloads
Bug 13379: Sign our MAR files.
Configure with --enable-verify-mar (when updating, require a valid signature on the MAR file before it is applied). Use the Tor Browser version instead of the Firefox version inside the MAR file info block (necessary to prevent downgrade attacks). Use NSS on all platforms for checking MAR signatures (instead of using OS-native APIs, which Mozilla does on Mac OS and Windows). So that the NSS and NSPR libraries the updater depends on can be found at runtime, we add the firefox directory to the shared library search path on macOS. On Linux, rpath is used by Mozilla to solve that problem, but that approach won't work on macOS because the updater executable is copied during the update process to a location that is under TorBrowser-Data, and the location of TorBrowser-Data varies. Also includes the fix for bug 18900. Bug 19121: reinstate the update.xml hash check Revert most changes from Mozilla Bug 1373267 "Remove hashFunction and hashValue attributes from nsIUpdatePatch and code related to these attributes." Changes to the tests were not reverted; the tests have been changed significantly and we do not run automated updater tests for Tor Browser at this time. Also partial revert of commit f1241db6. Revert the nsUpdateService.js changes from Mozilla Bug 862173 "don't verify mar file hash when using mar signing to verify the mar file (lessens main thread I/O)." Changes to the tests were not reverted; the tests have been changed significantly and we do not run automated updater tests for Tor Browser at this time. We kept the addition to the AppConstants API in case other JS code references it in the future.
parent
455c5291
No related branches found
No related tags found
Showing
- browser/config/mozconfigs/tor-browser 1 addition, 0 deletionsbrowser/config/mozconfigs/tor-browser
- modules/libmar/tool/mar.c 3 additions, 3 deletionsmodules/libmar/tool/mar.c
- modules/libmar/tool/moz.build 9 additions, 3 deletionsmodules/libmar/tool/moz.build
- modules/libmar/verify/moz.build 7 additions, 7 deletionsmodules/libmar/verify/moz.build
- toolkit/modules/AppConstants.jsm 7 additions, 0 deletionstoolkit/modules/AppConstants.jsm
- toolkit/mozapps/update/UpdateService.jsm 74 additions, 1 deletiontoolkit/mozapps/update/UpdateService.jsm
- toolkit/mozapps/update/UpdateTelemetry.jsm 1 addition, 0 deletionstoolkit/mozapps/update/UpdateTelemetry.jsm
- toolkit/mozapps/update/nsIUpdateService.idl 11 additions, 0 deletionstoolkit/mozapps/update/nsIUpdateService.idl
- toolkit/mozapps/update/updater/updater-common.build 21 additions, 3 deletionstoolkit/mozapps/update/updater/updater-common.build
- toolkit/mozapps/update/updater/updater.cpp 16 additions, 9 deletionstoolkit/mozapps/update/updater/updater.cpp
- toolkit/xre/moz.build 3 additions, 0 deletionstoolkit/xre/moz.build
- toolkit/xre/nsUpdateDriver.cpp 50 additions, 0 deletionstoolkit/xre/nsUpdateDriver.cpp
Loading
Please register or sign in to comment