Commit Graph

55 Commits

Author SHA1 Message Date
Brian R. Bondy
aabcdd7c84 Bug 874323 - Start updater manually for Metro to apply update. r=rstrong 2013-06-12 10:31:10 -04:00
Brian R. Bondy
c8186a880d Bug 794937 - Updater callback should launch Metro Firefox when updating from Metro Firefox. r=rstrong 2013-05-22 10:16:56 -04:00
Iivari Äikäs
18ecd9248b Bug 617897 - Replace calls to AppendASCII('*') with Append('*'). r=dougt 2013-05-07 10:25:21 -04:00
Mike Hommey
362f974085 Bug 793767 - Use the executable file location to derive the update root. r=rstrong 2013-02-08 15:58:52 +01:00
Dave Hylands
85ddb7f40c Bug 802423 - Updater needs to set oom_adj and nice appropriately. e=ehsan a=b2g-only 2013-01-21 12:22:16 -08:00
Dave Hylands
7f0868d780 Bug 785124 - Pt 3 - Modify the updater to support update.link file. r=rstrong
From 76c70c31f5362f7c91d567ca04329195d8126f26 Mon Sep 17 00:00:00 2001
 file. Prefer sdcard for download
---
 toolkit/mozapps/update/updater/updater.cpp |   53 +++++++++++++++++++++++++---
 toolkit/xre/nsUpdateDriver.cpp             |   13 +++++--
 2 files changed, 60 insertions(+), 6 deletions(-)
2012-12-14 16:06:41 -08:00
Phil Ringnalda
ed9b0b2817 Back out 6737ce4d3ce6:599c37ed628c (bug 785124) for b2g Arm xpcshell orange in update tests 2013-01-07 22:59:32 -08:00
Dave Hylands
1f5095e6c8 Bug 785124 - Pt 3 - Modify the updater to support update.link file. r=rstrong
From 76c70c31f5362f7c91d567ca04329195d8126f26 Mon Sep 17 00:00:00 2001
 file. Prefer sdcard for download
---
 toolkit/mozapps/update/updater/updater.cpp |   53 +++++++++++++++++++++++++---
 toolkit/xre/nsUpdateDriver.cpp             |   13 +++++--
 2 files changed, 60 insertions(+), 6 deletions(-)
2012-12-14 16:06:41 -08:00
Nathan Froyd
bd55a07f0e Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Brian R. Bondy
e92e724fe7 Bug 765598 - Remove newly created MozUpdater folders in tmp on post update. r=ehsan 2012-10-25 22:30:34 -04:00
Marshall Culpepper
e5a8a843cd Bug 778349: Initial support for OS ("FOTA") updates in Gonk. r=rstrong r=bbondy r=fabrice 2012-09-30 21:55:51 -05:00
Koosha Khajeh Moogahi
8d39310f18 Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg 2012-09-14 14:30:31 +04:30
Aryeh Gregor
5a68b81a9b Bug 783523 - Fix platform-specific nsresult misuse; r=ehsan,tbsaunde,smaug 2012-08-16 14:58:11 +03:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Marshall Culpepper
51818865da Bug 764683: Manage /system mount permissions when applying Gecko updates in B2G, and download them to /data/local. r=rstrong r=bbondy r=cjones 2012-08-27 12:27:14 -03:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Geoff Lankow
00f3a215c9 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Ehsan Akhgari
b944b89870 Bug 758742 - Fix up the string manipulation in nsUpdateProcessor::ProcessUpdate; r=Neil 2012-05-25 15:52:54 -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
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
Ehsan Akhgari
816e9ddd2e Backout changeset c3d4c0bdd4bf (bug 737056) for build bustage 2012-04-18 17:05:06 -04:00
Peng Kang
ebc77567f8 Bug 737056 - Replace NS_CompareVersions more intuitive C++ API called mozilla::Version. r=bsmedberg 2012-04-18 16:31:59 -04: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
Robert Strong
406b98c2d9 Main patch - Bug 660038 - Remove channel switching support. r=bbondy 2012-01-18 14:10:38 -08:00
Brian R. Bondy
86afcc4bf8 Bug 708854 - No longer use session ID for work item files. r=rstrong.
--HG--
rename : toolkit/mozapps/update/common/launchwinprocess.cpp => toolkit/mozapps/update/common/updatehelper.cpp
rename : toolkit/mozapps/update/common/launchwinprocess.h => toolkit/mozapps/update/common/updatehelper.h
2012-01-04 23:19:15 -05:00
Ehsan Akhgari
a4f0bf9dcb Bug 481815 - Automated tests for updates using the maintenance service; r=rstrong.
--HG--
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test/unit/test_0110_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test/unit/test_0111_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test/unit/test_0112_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0120_channelChange_complete.js => toolkit/mozapps/update/test/unit/test_0120_channelChange_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0150_appBinReplaced_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0150_appBinReplaced_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0151_appBinPatched_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0151_appBinPatched_xp_win_partial_svc.js
rename : toolkit/mozapps/update/test/unit/test_0160_appInUse_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0160_appInUse_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial_svc.js
rename : toolkit/mozapps/update/test/unit/test_0180_fileInUse_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0180_fileInUse_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0181_fileInUse_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0181_fileInUse_xp_win_partial_svc.js
rename : toolkit/mozapps/update/test/unit/test_0182_rmrfdirFileInUse_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0182_rmrfdirFileInUse_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0183_rmrfdirFileInUse_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0183_rmrfdirFileInUse_xp_win_partial_svc.js
rename : toolkit/mozapps/update/test/unit/test_0200_app_launch_apply_update.js => toolkit/mozapps/update/test/unit/test_0200_app_launch_apply_update_svc.js
2012-01-04 23:19:14 -05:00
Brian R. Bondy
54527b0e1a Bug 481815 - Provide a Windows service for silent updates. r=rstrong. 2012-01-04 23:19:14 -05:00
Ehsan Akhgari
a1be348cda Bug 695795 - Drop the reference argument in ProcessUpdates because it's not really needed; r=bbondy
DONTBUILD
2011-10-19 15:09:53 -04:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
arno renevier
5388ac92cf Bug 669299 - Remove unneeded nsPrintfCString.h includes. r=bsmedberg 2011-07-21 04:37:31 +02:00
Robert Strong
7729d8fd36 1. main patch - Bug 642765 - Add ability to channel change to the client. r=mossop 2011-04-11 21:24:16 -07:00
Mitchell Field
2e8a7d546f Bug 627277 - Remove (broken) BeOS support. r=biesi,dwitte,gavin,joe,jorendorff,josh,khuey,mfinkle,neil,Pike,roc,shaver,smontagu,taras 2011-02-20 06:10:24 +11:00
Robert Strong
077a44e8d2 Bug 616775 - Use OpenNSPRFileDesc instead of OpenANSIFileDesc in nsUpdateDriver.cpp. r=dtownsend, a=approval2.0 2010-12-07 12:06:22 -08:00
Robert Strong
17dc66ec01 Bug 616765 - Useless Exists check in nsUpdateDriver.cpp. r=dtownsend, a=approval2.0 2010-12-07 12:06:05 -08:00
Robert Strong
43db7e0a0e Bug 601469 - Updater in 10/02 and 10/03 Windows nightly is broken. r=dolske, a=blockingB7 2010-10-03 12:47:00 -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
Robert Strong
163feb77f0 Main patch - Bug 596813 - Check for updates inside the About window without opening a new window. r=dtownsend, ui-r=beltzner, a=blocking2.0-beta7 2010-09-23 21:02:08 -07:00
Robert Strong
13e54a948e Always use the '0' dir for updates - Bug 588163 - Crash [@ @0x0 | ProcessUpdates(nsIFile*, nsIFile*, nsIFile*, int, char**, char const*&) ]. r=dtownsend, approval2.0=dtownsend 2010-08-17 20:09:07 -04:00
Josh Aas
e2b3518473 Simplify nsCommandLineServiceMac, make it easier to understand and faster. Remove unused code. b=542936 r=mstange r=bsmedberg 2010-06-08 18:26:12 -04:00
Nickolay Ponomarev
ed75422f99 bug 369147, "Warning: unrecognized command line flag -foreground" on launch
r=josh
Don't add the '-foreground' flag to the list of command line arguments if we're not restarting,
since no-one outside of XRE_main knows how to handle it.
2010-04-17 13:50:17 +04:00
Robert Strong
82ccc258a2 Bug 504432 - [WinCE] updater.exe not launched when there is an update during startup. r=vlad 2009-07-29 23:01:50 -07:00
Dave Townsend
23914a0124 Bug 498379: Checking that we aren't updating to an older version of the application fails in certain cases. r=robstrong 2009-06-15 20:48:30 +01:00
David Dahl
281f0efe60 Bug 473337 - Refresh the updater application icon; Linux part; r=(robert.bugzilla + ted.mielczarek) ui-r=faaborg 2009-02-24 17:53:36 +01:00
Robert Strong
247e364bdc Bug 459615 - Remove the needElevation param from WinLaunchChild. r=ted.mielczarek, r=jmathies 2009-01-01 16:18:33 -08:00
Robert Strong
cbdfafbc55 Bug 313057: Automatic updater downgrades/overwrites browser version when an older/identical version is in the queue. r=bsmedberg, a1.9.1b2=beltzner 2008-11-14 12:11:08 +00:00
Arpad Borsos
8b11d938d2 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Dave Townsend
433e26280f Bug 436719: Read updater.ini from app dir, not gre. r=bsmedberg, r=robstrong 2008-08-14 17:08:03 +01:00