Commit Graph

17 Commits

Author SHA1 Message Date
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
Robert Strong
406b98c2d9 Main patch - Bug 660038 - Remove channel switching support. r=bbondy 2012-01-18 14:10:38 -08:00
Phil Ringnalda
ff3f5d608d Bug 668508 - Use xpcshell manifests instead of preprocessing to control which update tests run on which platforms, r=rs 2011-06-08 23:18:44 -07:00
Robert Strong
9757fe29e3 test fix for test_0112_general.js - Linux and Mac - Bug 386760 - directory removal with software update. r=testfix 2011-04-12 00:15:42 -07:00
Robert Strong
35ffe77cb8 test fix for test_0160_appInUse_xp_unix_complete.js - Linux and Mac - Bug 386760 - directory removal with software update. r=testfix 2011-04-11 22:58:01 -07:00
Robert Strong
811d84945a 6. test patch 2 - Bug 386760 - directory removal with software update. r=dolske
--HG--
rename : toolkit/mozapps/update/test/unit/data/partial_in_use_win.mar => toolkit/mozapps/update/test/unit/data/partial_win.mar
2011-04-11 21:24:06 -07:00
Robert Strong
331caf27f8 3. test patch 1 - Bug 386760 - directory removal with software update. r=mossop 2011-04-11 21:23:36 -07:00
Robert Strong
d7b6ac5f86 2. tests - Bug 466778 - [Win] Unable to update when files to be patched are in use on Windows. r=dtownsend, a=blocking2.0-BetaN
--HG--
rename : toolkit/mozapps/update/test/unit/data/aus-0110_general.mar => toolkit/mozapps/update/test/unit/data/complete.mar
rename : toolkit/mozapps/update/test/unit/data/aus-0110_general_ref_image.png => toolkit/mozapps/update/test/unit/data/complete.png
rename : toolkit/mozapps/update/test/unit/data/aus-0111_general.mar => toolkit/mozapps/update/test/unit/data/partial.mar
rename : toolkit/mozapps/update/test/unit/data/aus-0111_general_ref_image.png => toolkit/mozapps/update/test/unit/data/partial.png
2010-11-18 17:20:58 -08:00
Robert Strong
f6093d528c Bug 606410 - add tests for calling the callback app and the arguments passed to it. r=dtownsend, a=tests 2010-11-06 23:41:49 -07:00
Robert Strong
2faf64b982 Bug 601518 - Need updater tests to cover nsUpdateDriver.cpp code. r=dtownsend, a=blocking2.0-final 2010-10-19 21:28:29 -07:00
Josh Aas
a4e524e09b Bug 600777: Update driver code should launch updater application with a preference for the parent architecture. r=rstrong a=blocking-beta7 2010-10-02 00:11:24 -04:00
Nick Thomas
b4c0b93b35 Bug 571367, turn production x86_64 builds into i386/x86_64 universal binaries (disable tests known to fail on leopard) r=ted CLOSED TREE 2010-09-27 12:14:47 +13:00
Robert Strong
51c54e98b0 Bug 316890 - Add more logging to updater and close patch files so they can be deleted. r=dolske, a=approval2.0 dtownsend 2010-09-09 12:22:02 -07:00
Robert Strong
4d5198538e 2. updated xpcshell tests - Bug 530872. r=dolske 2010-03-03 10:56:47 -08:00
Robert Strong
289f1720d4 Bug 507339 - Test more files in the complete / partial mar files and check file permissions. r=blassey, r=me
--HG--
rename : toolkit/mozapps/update/test/unit/head_update.js => toolkit/mozapps/update/test/unit/head_update.js.in
rename : toolkit/mozapps/update/test/unit/test_0040_general.js.in => toolkit/mozapps/update/test/unit/test_0040_general.js
2009-08-07 13:19:58 -07:00
Robert Strong
696f5b6fb7 Updated tests for Bug 506696. r=me 2009-07-29 23:01:43 -07:00