Commit Graph
107 Commits
Author SHA1 Message Date
Robert Strong f03959ddf1 Bug 641212 - use lzma compression for application update. Part 2 - add xe-embedded decompression support to the updater. r=mhowell, , a=app_update_lzma
Changes to the libmar host utilities (mar and signmar) are backwards compatible with the previous versions of mar and signmar
2017-07-30 23:27:00 -07:00
Sylvestre Ledru 9d4a84d778 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Robert Strong 4e020843ec Bug 1375549 - When the Firefox process doesn't exit apply the update anyway and don't relaunch the callback application. r=mhowell
This makes it so updating continue when the parent application doesn't exit (see bug 1375242) so any fixes to the parent application will be applied instead of leaving the client in a broken state.
Changes the wait time for the parent process to 30 seconds since the previous value of 70 seconds was based on nsTerminator which isn't used for this case. It still needs to be greater than the old value of 10 since we've seen cases lately where the process has taken more than 10 seconds.
2017-06-23 18:27:06 -07:00
Tom Tromey 98e2336080 Bug 1334283 - use MOZ_FORMAT_PRINTF in toolkit/mozapps/update; r=rstrong
Use MOZ_FORMAT_PRINTF in toolkit/mozapps/update, and fix the one
erroneous printf that this detected.

MozReview-Commit-ID: 5dzyMOZwNDG
2017-05-02 08:55:19 -06:00
Robert Strong ae85f8d102 Client code - Bug 1348645 - check that the app update callback path is valid. r=mhowell 2017-04-28 16:37:15 -07:00
Robert Strong 355cfa1709 Client code - Bug 1342742 - check that the app update patch dir, install dir, and working dir paths are valid. r=mhowell 2017-04-28 16:36:45 -07:00
Xiaoyin Liu 87bb3a7604 Bug 1350309 - Fix uninitialized variables in updatehelper.cpp r=rstrong
Originally |consent| and |secureDesktop| are always used even when |success| is FALSE, and |consent| and |secureDesktop| are uninitialized in this case. In this patch, |isUnpromptedElevation| is set only when |success| is TRUE.

MozReview-Commit-ID: Dik8NG7zcCa
2017-03-24 08:58:42 -04:00
Robert Strong 768c4fb2e1 Bug 1357685 - Remove the remaining gonk code from application update. r=mhowell
The DWNLD_ERR_NO_PATCH_FILE (7) telemetry value for was removed for the UPDATE_DOWNLOAD_CODE_COMPLETE and UPDATE_DOWNLOAD_CODE_PARTIAL histograms since it was only needed for gonk
The FILESYSTEM_MOUNT_READWRITE_ERROR 43 error code for the updater was removed since it was only needed for gonk
The isOSUpdate and applyOsUpdate methods in nsIUpdateService.idl were removed since they were only needed for gonk
The remainder is general gonk code removal
2017-04-19 15:07:11 -07:00
Ehsan Akhgari 11743b9cad Bug 1318562 - Remove Navigator.updateManager; r=baku 2016-11-18 09:01:49 -05:00
Matt Howell 0f1045b736 Bug 1246972 - Always require the update working directory to be within the installation path; r=rstrong
This required fixing a few chrome tests which broke on Mac because they were assuming updater-settings.ini would be at the same location as the executables.

Also, this patch removes many dependencies on the current working directory from updater.cpp by changing it to use absolute paths instead. Otherwise this patch would have required adding yet more chdir() calls to avoid invalidating existing assumptions about what the current directory is.

MozReview-Commit-ID: ASxfV4uVpmD
2016-08-25 15:31:13 -07:00
Wes Kocher 85ed172e67 Backed out 2 changesets (bug 1246972) for marSuccessComplete.js failures a=backout
Backed out changeset 4576637003b6 (bug 1246972)
Backed out changeset c079fb045b9d (bug 1246972)
2016-08-25 13:02:17 -07:00
Matt Howell 15447e7a92 Bug 1246972 - Always require the update working directory to be within the installation path; r=rstrong
This required fixing a few chrome tests which broke on Mac because they were assuming updater-settings.ini would be at the same location as the executables.

Also, this patch removes many dependencies on the current working directory from updater.cpp by changing it to use absolute paths instead. Otherwise this patch would have required adding yet more chdir() calls to avoid invalidating existing assumptions about what the current directory is.

MozReview-Commit-ID: ASxfV4uVpmD
2016-08-23 14:11:23 -07:00
Tom Tromey 1b5a2bdb96 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
Chris Peterson 9591260fc7 Bug 1277155 - Part 1: Remove snprintf() polyfills for VS2013 in Sprintf.h and #defines. r=froydnj r=mhowell 2016-06-27 20:45:03 -07:00
Robert Strong 5e5c76f9ac Bug 1168743 - client changes - Only use env vars in the test updater and general app update cleanup. r=mhowell 2016-06-11 08:31:10 -07:00
Matt Howell 6dd90bc346 Bug 1237219 - Lock patch files while applying updates; r=rstrong
MozReview-Commit-ID: 8m4SQVhZy4D
2016-04-14 09:33:42 -07:00
Matt Howell 5c9a362b31 Bug 1212939 - Disable update logging if given a log file path longer than MAX_PATH; r=rstrong 2015-12-21 11:36:54 -08:00
Kathy Brade 1eb030c8f2 Bug 1217985 - Don't depend on Windows crypto DLLs
If not building the Windows Maintenance Service, avoid a dependency
on crypt32.dll and wintrust.dll.

Also, avoid setting sUsingService inside the updater code; this
ensures that all Maintenance Service related codepaths are skipped.
2015-10-27 17:50:32 -07:00
Jacek Caban f1774511f9 Bug 1199615 - Fixed toolkit/mozapps/update/ compilation on mingw. r=rstrong 2015-09-15 13:12:03 +02:00
Nicholas Nethercote 12fec02dfb Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Jacek Caban f6c003d071 Bug 1199118 - Don't use pragma comment in certificatecheck.cpp. r=glandium 2015-08-28 13:17:54 +02:00
Robert Strong d1f721c720 Bug 1177861 - remove remaining unused declarations and cleanup update staging. r=spohl 2015-08-11 14:30:35 -07:00
Robert Strong 000e8cd69c Bug 1171518 - cleanup maintenance service logging. r=bbondy 2015-07-14 12:08:45 -07:00
Kartikaya Gupta ebe4a3e37e Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Robert Strong 0d7944c771 Bug 1154179 - Add FAIL_ON_WARNINGS to app update. r=glandium 2015-04-14 17:00:11 -07:00
Wes Kocher 550d390c47 Backed out 3 changesets (bug 1151266, bug 920750, bug 1138284) for Windows updater XPCshell test failures
Backed out changeset 816465912339 (bug 920750)
Backed out changeset 8cd18e65ef94 (bug 1138284)
Backed out changeset 8f9d45fcae6b (bug 1151266)
2015-04-07 18:19:46 -07:00
Robert Strong 1e625f025a Bug 1138284 - Extend telemetry for large number of SERVICE_UPDATER_SIGN_ERROR errors. r=spohl 2015-04-07 14:03:04 -07:00
Robert Strong 4619a15c1b Bug 1138282 - Extend telemetry for large number of SERVICE_STILL_APPLYING_ON_FAILURE errors. r=bbondy 2015-04-03 11:19:01 -07:00
Robert Strong 9d6e3adefd Bug 1137447 - New app update telemetry for patch type (complete or partial), extended error codes, and general cleanup. r=bbondy 2015-03-28 20:20:53 -07:00
Brian Smith 6b89c1d286 Bug 1119072, Part 11: Do not conflate struct _stat with struct stat in MSVC 2015, r=rstrong 2015-01-12 20:04:46 -08:00
Brian Smith ebf74f4fbc Bug 1119776, Part 7: Avoid defining snprintf when MSVC provides it (other), r=bsmedberg 2015-01-08 22:35:33 -08:00
Masatoshi Kimura bae0a32948 Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Jacek Caban 4abb0d4e6f Bug 1102809 - Fixed -Wunused-function warnings found in mingw build. r=mattwoodrow 2014-11-24 11:19:36 +01:00
Brian R. Bondy 9ae4a89df8 Backout bug 945192 for intermittent failures. r=rstrong 2014-09-15 20:29:35 -04:00
Brian R. Bondy a9c6980505 Bug 945192 - Changes for tests. r=rstrong. 2014-09-05 12:56:09 -04:00
Brian R. Bondy 9e583314e5 Bug 945192. r=rstrong 2014-05-25 21:58:53 -04:00
Ehsan Akhgari 4b6cf6e96e Bug 1061054 - Fix more bad implicit constructors in updater; r=bbondy 2014-09-04 23:23:24 -04:00
Mike Hommey aec0b61280 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Jeff Walden b908fe44cf Bug 1037100 - Remove all use of ScopedDeleteArray from miscellaneous places. r=jcranmer 2014-07-10 20:37:40 -07:00
Mike Hommey ea36b79845 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Jacek Caban af6a8803b9 Bug 1022847 - Fixed --enable-metro build. 2014-07-10 15:15:10 +02:00
Jacek Caban 0cfb52a604 Bug 1022847 - toolkit/mozapps/update fails to compile with MinGW r=netzen 2014-06-25 11:30:05 +02:00
Brian R. Bondy 484b5a1569 Bug 961676. r=rstrong 2014-03-28 14:17:36 -04:00
Masatoshi Kimura 084afc923c Bug 973181 - Check the unprompted elevation mode only if the current user can elevate. r=bbondy 2014-02-19 20:29:48 +09:00
Masatoshi Kimura 5bbacee4ff Bug 969918 - Use decltype to declare pointers for dynamic-loaded functions. r=jimm sr=roc 2014-02-18 07:32:52 +09:00
Masatoshi Kimura 318b8ce5ad Bug 969728 - Make users using temporary profile possible to update using the maintenance service. r=bbondy 2014-02-12 06:01:29 +09:00
Mike Hommey 06e3b30661 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey 7f7e4faac1 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey 656e86914a Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Mike Hommey e54b7f1945 Bug 937359 - Make all objects built into xul.dll built with -MD/-MDd, not -MT/-MTd. r=bsmedberg 2013-11-16 13:37:56 +09:00