Commit Graph

442 Commits

Author SHA1 Message Date
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
0398ec71be Bug 751652 - Disable MAR tests when security checks are disabled. r=rstrong 2012-05-04 08:09:14 -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
Brian R. Bondy
94473aa0f3 Bug 735970 - Add xpcshell tests for version downgrades. r=rstrong, a=test-only. 2012-05-01 22:17:31 -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
936c3d52ae Bug 739801: Initialize the lastUpdateTime to 0 to make sure we check for an update on first startup after a fresh install (or profile clear). r=rs 2012-04-10 01:55:10 -07: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
Chris Jones
f390d1321c Bug 737368, part 1: Fix up ifdefs to support building update code for Gonk. r=mwu 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
Brian R. Bondy
8fb28312c5 Bug 735713 - MAR files should specify maximum version for version compare checks; r=ehsan 2012-03-14 19:39:40 -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
b61e60af2e Bug 731901 - Update telemetry ping to use new telemetry name. r=rstrong 2012-03-09 14:01:50 -05: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
Kyle Huey
56bb56f79d Bug 728392: nsUpdateService should clear its references to the update listener once it is no longer needed. r=rs 2012-02-28 08:57:35 -08:00
Brian R. Bondy
32487eb533 Bug 725180 - Updater JS error handling for new error codes. r=rstrong 2012-02-24 16:29:42 -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
91e82baa20 Bug 708690 - Updated MAR files for product information blocks. 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
Geoff Lankow
b0321a6413 Bug 718255 - Merge nsIPrefBranch2 with nsIPrefBranch - Part C, remove uses of nsIPrefBranch2 in toolkit/ ; r=bsmedberg 2012-01-17 14:18:29 +13:00
Panagiotis Koutsourakis
e1c3ff7ece Bug 702388 - Convert some more Makefiles to use |TEST_DIRS += foo|; r=khuey 2012-02-10 21:06:56 +00: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
Matt Brubeck
e21f1bcba1 Merge mozilla-central and mozilla-inbound 2012-01-19 11:13:07 -08:00
Brian R. Bondy
5b8410bbc2 Bug 718450 - Callback application does not relaunch on some limited user account WinXP. r=rstrong 2012-01-19 13:05:51 -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
1cc4dd3f92 Bug 715749 - service broke builds with --disable-updater. r=rstrong 2012-01-10 11:28:50 -05: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
2fdf796977 Bug 711692 - appbin fix and SCM lock hang fix. r=rstrong. 2012-01-04 23:19:19 -05:00
Robert Strong
95ad280cda Bug 711692 - Fail if service is started and doesn't stop at test start. r=bbondy. 2012-01-04 23:19:19 -05:00