Commit Graph

467 Commits

Author SHA1 Message Date
Ehsan Akhgari
7b7a3556e8 Merge the last green changeset of mozilla-inbound to mozilla-central 2012-06-02 14:39:47 -04:00
Pranav Ravichandran
a74d2889e8 Bug 750554 - If service is not used for updates then do not show it in preferences. r=bbondy 2012-05-31 10:28:01 -04:00
Ehsan Akhgari
5b1b2aa3b0 Bug 760290 - The update UI needs to be aware of the possibility that the update cannot be staged in the background; r=rstrong 2012-05-31 20:28:32 -04:00
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
976be9a0fc Merge mozilla-central into mozilla-inbound 2012-06-01 17:22:53 -04:00
Ginn Chen
fd2aa86370 Bug 758514 consistently use typedef for NS_tchar, also enable testing for Solaris r=rstrong 2012-06-01 17:50:35 +08:00
Ehsan Akhgari
8a0b44b9e8 Bug 759065 - Fall back to downloading the full update if staging the update in the background fails; r=rstrong 2012-05-29 16:20:12 -04:00
Ehsan Akhgari
77dc25ccd3 Bug 757965 - Properly test for write access before staging an update in the background; r=rstrong
This patch makes sure that we test to make sure we can create a
directory in the installation directory and also in its parent (the
latter check only happens on Windows and Linux), so that we wouldn't try
to stage an update in the background if that's bound to fail if we don't
have the require write permissions.
2012-05-30 17:57:05 -04:00
Ehsan Akhgari
e68423b7a6 Merge mozilla-central into mozilla-inbound 2012-05-30 22:43:10 -04:00
Robert Strong
36b8cf6fcb Bug 759460 - Preprocess channel name into nsUpdateService.js instead of just using 'default'. r=bbondy 2012-05-30 15:17:43 -07: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
Ehsan Akhgari
190b2cadd1 Bug 759390 - Make sure gCanStageUpdates will not fail if the maintenance service pref is set to false; r=rstrong 2012-05-30 13:54:10 -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
4ea0bd11da Bug 757632 followup - Try to disable the test properly 2012-05-29 17:16:57 -04:00
Ehsan Akhgari
25952ff6ed Bug 757632 followup - Remove the test name from the manifest file; r=me 2012-05-29 17:03:36 -04:00
Ehsan Akhgari
49199db8cd Bug 757632 - Disable test_0202_app_launch_apply_update_dirlocked.js for now; r=me 2012-05-29 16:39:39 -04:00
Brian R. Bondy
4671436044 Bug 692255 - Get rid of prefetch files on Windows for faster startup. r=rstrong 2012-05-27 22:40:48 -04:00
Ehsan Akhgari
173dd728bb Debugging code for bug 757632; r=me 2012-05-25 16:57:00 -04:00
Ehsan Akhgari
74c31c97e7 Bug 757965 - Test to make sure we have write access to the needed directories before attempting to stage an update; r=rstrong
--HG--
extra : rebase_source : 78470ccf04a9e29c5f6320e06ec899d3d47ac618
2012-05-25 03:17:16 -04:00
Szabolcs Hubai
43aecde60c Bug 756960 - Iterate on a shallow copy while notifying downloadListeners. r=Mossop 2012-05-21 21:20:54 +02:00
Ehsan Akhgari
bb46fe0915 Bug 757885 - Handle falling back to non-staged updates correctly when an update fails to be staged in the background; r=rstrong 2012-05-23 17:51:50 -04:00
Ehsan Akhgari
6ef914c817 Bug 757835 - Fall back to not use the maintenance service if there is an error when using the service to stage an update in the background; r=rstrong
This will cause us to fall back to a non-background update with a UAC prompt,
which sucks, but at least it lets the user to update.

--HG--
extra : transplant_source : z%00/Z%ED%E3gj%A2%E6%244%D0%B0%AE%A1zdPT
2012-05-23 12:31:37 -04:00
Ehsan Akhgari
8737791b22 Bug 757437 - Remove the rest of the support code for xpcshell-specific Mac bundle hacks from bug 307181; r=rstrong 2012-05-22 11:32:01 -04: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
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