Commit Graph

82 Commits

Author SHA1 Message Date
Ehsan Akhgari
c1a2ef8da5 Bug 760027 - Attempt to retry moving the installation directory when performing the replace stage of an update 10 times; r=strong
This will hopefully give the applications which might have a handle to some
file in that directory open a chance to close them up so that the replace
operation would finish successfully.
2012-05-31 15:40:07 -04:00
Ehsan Akhgari
991b81f254 Bug 759615 - Avoid running the PostUpdate step when only staging the update in the background; r=rstrong 2012-05-30 18:09:59 -04:00
Ehsan Akhgari
3127b280c3 Bug 758998 - Use the correct installation directory when attempting to upgrade the maintenance service; r=bbondy 2012-05-29 17:31:04 -04:00
Gervase Markham
d4eb7d5782 Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Ehsan Akhgari
f35f3560ae Bug 757981 - Make sure to use the correct installation directory for regular updates; r=bbondy 2012-05-23 16:50:10 -04:00
Landry Breuil
2f811f1b3b Bug 757611 - pass a FILE* to ferror(), fixes build on OpenBSD - r=ehsan 2012-05-22 17:24:42 -04:00
Ehsan Akhgari
ab9253304f Bug 307181 - Stage Firefox updates in the background after they're downloaded, and replace the application directory on restart; r=rstrong,bbondy
When Firefox downloads an update, it previously kept the update around to apply
it on the next restart.  This patch changes this so that the updater program
is launched in the background as soon as the update has finished downloading
in order to stage the updated version of the application by copying the
existing installation directory to a temporary location and applying the update
on top of it, and replace the existing installation directory with the staged
directory on the next restart.

Because the replacing step is typically very fast, this patch eliminates the
wait for the update to be applied on restart, making it unnecessary to show a
progress dialog when restarting.

--HG--
rename : toolkit/mozapps/update/test/chrome/test_0092_finishedBackground.xul => toolkit/mozapps/update/test/chrome/test_0093_stagedBackground.xul
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test/unit/test_0113_general.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test/unit/test_0114_general.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test/unit/test_0115_general.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0172_fileLocked_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0173_fileLocked_xp_win_partial.js
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test_svc/unit/test_0113_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test_svc/unit/test_0114_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test_svc/unit/test_0115_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test_svc/unit/test_0172_fileLocked_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test_svc/unit/test_0173_fileLocked_xp_win_partial_svc.js
2012-05-22 10:50:04 -04:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian R. Bondy
cc02047c24 Bug 750850 - Delayed loading. r=ehsan 2012-05-05 09:21:53 -04:00
Brian R. Bondy
c20b4e4ab2 Bug 748948 - Possible race condition when launching updates from service after security checks. r=rstrong, a=ehsan. 2012-05-02 15:40:33 -04:00
Peng Kang
98d1b53def Bug 737056 - Replace NS_CompareVersions more intuitive C++ API called mozilla::Version. r=bsmedberg 2012-04-18 23:22:29 -04:00
Brian R. Bondy
233361a29e Bug 735969 - Revert the disable version downgrade check workaround from Bug 735784. r=rstrong 2012-04-12 19:06:19 -04:00
Chris Jones
28b2216a18 Bug 737368, part 2: Implement a trivial update-application-progress UI for Gonk that shows ASCII bars in logcat. r=mwu
--HG--
rename : toolkit/mozapps/update/updater/progressui_null.cpp => toolkit/mozapps/update/updater/progressui_gonk.cpp
2012-03-21 15:50:53 -07:00
Brian R. Bondy
4e0c08fd8b Bug 735784 - Workaround for 13.0a1 users who are getting version downgrade errors. r=rstrong 2012-03-14 22:42:42 -04:00
Ehsan Akhgari
527cea691e Bug 735713 - Make sure that we can update users if the version of the application has been bumped up; r=rstrong 2012-03-14 14:08:01 -04:00
Ehsan Akhgari
ade575882e Backed out changeset a888f210af4e (bug 735713) because of test failures on Windows
--HG--
extra : rebase_source : eb2c30597bd72049b57e3aed4a496e007d322d03
2012-03-14 17:45:18 -04:00
Ehsan Akhgari
71ca779083 Bug 735713 - Make sure that we can update users if the version of the application has been bumped up; r=rstrong 2012-03-14 14:08:01 -04:00
Brian R. Bondy
bf2cc24f9c Bug 711054 - Stop using readstrings errors for updater. r=rstrong
--HG--
rename : toolkit/mozapps/readstrings/errors.h => toolkit/mozapps/update/common/errors.h
rename : toolkit/mozapps/readstrings/readstrings.cpp => toolkit/mozapps/update/common/readstrings.cpp
rename : toolkit/mozapps/readstrings/readstrings.h => toolkit/mozapps/update/common/readstrings.h
2012-03-05 15:47:46 -05:00
Brian R. Bondy
f054840ac4 Bug 730792 - Enable new security checks for updates without the service. r=rstrong 2012-03-05 15:47:46 -05:00
Brian R. Bondy
f53637514f Bug 725180 - Misc libmar fixes found from tests. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
d5d3212890 Bug 728301 - Enable new security checks only for the service. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
b4f0f02c3b Bug 721758 - Ability to configure updater to accept multiple MAR IDs. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
9f37e649a9 Bug 708690 - XPCShell test enhancements for product information blocks. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
fa2a4a39bd Bug 708690 - Updater enhancements for product information blocks. r=rstrong 2012-02-24 16:29:41 -05:00
Brian R. Bondy
4ae40571d6 Bug 711139 - MOZ_VERIFY_MAR_SIGNATURE build option for verifying MAR signatures. r=rstrong. sr=khuey 2012-02-24 16:29:41 -05:00
Brian R. Bondy
edd93a1353 Bug 704285 - Certificates for updater cert check. r=rstrong 2012-02-24 16:29:41 -05:00
Brian R. Bondy
650b463f1b Bug 704285 - Include certificates inside updater.exe and use them to verify MARs. r=rstrong 2012-02-24 16:29:41 -05:00
Brian R. Bondy
0ed7886cd2 Bug 699700 - Add support for signing and verifying MAR files in libmar and the mar program. r=bsmith 2012-02-24 16:29:41 -05:00
Ginn Chen
14e9d16868 Bug 674478 Implement rmdir rf without FTS on Solaris r=bbondy 2012-02-22 10:12:54 +08:00
Nathan Froyd
6ae9126bcf Bug 727156 - fix compiler warnings in toolkit/mozapps/update/; r=bbondy 2012-02-14 10:48:23 -08:00
Brian R. Bondy
4e8a0d70b6 Bug 719947 - Add an indeterminate progress bar for updates applied from service. r=rstrong 2012-02-03 08:51:22 -05:00
Brian R. Bondy
56f12f2e82 Bug 719066 - Callback application should relaunch with the same privileges it had last. r=rstrong 2012-01-22 16:18:15 -05:00
Tim Taubert
8165319fae merge m-c to fx-team 2012-01-19 12:10:03 +01:00
Robert Strong
406b98c2d9 Main patch - Bug 660038 - Remove channel switching support. r=bbondy 2012-01-18 14:10:38 -08:00
Tim Taubert
3c3a8573ab merge m-c to fx-team 2012-01-13 11:40:59 +01:00
Jared Wein
87eda9a7cd Bug 710968 - Updater incorrectly checks fread() retval. r=bbondy 2012-01-12 16:38:20 -08:00
Brian R. Bondy
e2fc40309f Bug 715746 - Fix for intermittent test_0000_bootstrap_svc.js failure failed: 7 == succeeded. r=rstrong 2012-01-12 09:54:40 -05:00
Mike Hommey
567913809a Bug 701371 - Rename mozutils to mozglue, and move it to top-level. r=khuey,a=brendan
--HG--
rename : memory/mozutils/Makefile.in => mozglue/Makefile.in
rename : memory/mozutils/Makefile.in => mozglue/build/Makefile.in
rename : memory/mozutils/dummy.cpp => mozglue/build/dummy.cpp
rename : memory/mozutils/fixcrt.py => mozglue/build/fixcrt.py
rename : memory/mozutils/mozutils.def.in => mozglue/build/mozglue.def.in
2011-12-28 08:24:02 +01:00
Brian R. Bondy
c97793c692 Bug 711692 - Various fixes for intermittent failures. r=rstrong. 2011-12-28 21:08:37 -05:00
Brian R. Bondy
3588126af5 Bug 711692 - Don't rely on event and don't uninstall/install service on updates. r=rstrong. 2012-01-04 23:19:19 -05:00
Brian R. Bondy
36927de39a Bug 711692 - Loop on app bin copy to ensure it can be removed (intermittent test failure). r=rstrong. 2012-01-04 23:19:18 -05:00
Brian R. Bondy
1d25a248b6 Bug 711834 - Clear out env variable after getting value from unelevated updater.exe. r=rstrong. 2012-01-04 23:19:18 -05:00
Brian R. Bondy
195b8ef006 Bug 711834 - Fix force no UAC prompt for xpcshell tests. r=rstrong 2012-01-04 23:19:17 -05:00
Brian R. Bondy
e0a208e138 Bug 711792 - Speed up and simplify maintenance service update command processing. r=rstrong. 2012-01-04 23:19:17 -05:00
Brian R. Bondy
b374707209 Bug 711505 - Callback application should be locked when doing updates from the service. r=rstrong. 2012-01-04 23:19:16 -05:00
Brian R. Bondy
165e3a3c65 Bug 711140 - Use maintenance service if the fallback key is present so tests can run. r=rstrong. 2012-01-04 23:19:16 -05:00
Brian R. Bondy
c41584e6f4 Bug 709598 - If no registry keys exist for the install dir, don't try to use the maintenance service for updates. r=rstrong.
--HG--
rename : toolkit/components/maintenanceservice/pathhash.cpp => toolkit/mozapps/update/common/pathhash.cpp
rename : toolkit/components/maintenanceservice/pathhash.h => toolkit/mozapps/update/common/pathhash.h
2012-01-04 23:19:16 -05:00
Brian R. Bondy
e6f1faa1ee Bug 708778 - Updater service used on Windows should drop as many permissions as possible. r=rstrong. 2012-01-04 23:19:16 -05:00
Brian R. Bondy
af8dcf0b95 Bug 709173 - updater.exe needs to be verified to be an updater, not just an executable signed by Mozilla. r=rstrong. 2012-01-04 23:19:16 -05:00
Brian R. Bondy
d9f3ef0a5a Bug 709183 - Callback path and arguments untrusted, don't use/pass them. r=rstrong. 2012-01-04 23:19:16 -05:00