Commit Graph

762 Commits

Author SHA1 Message Date
Kyle Machulis
d2b6e6e01a Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
5663b98bc5 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Mike Shal
ea1d9b8ba7 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Gregory Szorc
0d33ac5f93 Bug 818246 - Part 5: Move XPIDLSRCS into moz.build (manual); r=glandium 2013-03-12 10:20:41 -07:00
Gregory Szorc
629b5d86c6 Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Brian R. Bondy
3537cb8eb8 Bug 843770. r=rstrong 2013-02-28 16:12:51 -05:00
Brian R. Bondy
a177984e04 bug 830134. r=rstrong 2013-02-28 10:05:45 -05:00
Ms2ger
2801c25ab8 Merge m-c to b-s. 2013-02-26 19:09:25 +01:00
Gregory Szorc
cc8470b5e8 Bug 784841 - Part 18θ: Convert /toolkit f=Mossop, Ms2ger; rs=ted 2013-02-25 13:19:09 -08:00
Marshall Culpepper
06a8d84849 Bug 833708: Correctly set the active update's errorCode when there isn't enough space in Gonk. r=dhylands 2013-02-25 21:11:14 -06:00
Shih-Chiang Chien
fbbdc55e37 Bug 835260 - Need B2G version number for composing update URL. r=marshall_law 2013-02-25 20:44:12 -05:00
Gavin Sharp
0185984451 Remove some unnecessary preprocessing, no bug
--HG--
extra : rebase_source : b8bfed7a5b55652fd8a9b3bf3c601accb8b2022f
2013-02-17 17:49:25 -08:00
Tatiana Meshkova
675609b5ae Bug 837730 - Add missing NULL definition so that updater will compile on some Linux platforms. r=rstrong 2013-02-12 16:14:13 -08:00
Dave Hylands
babb96dec1 Bug 827896 - Cancel download rather than letting it fail when powering off the phone. r=rstrong 2013-02-08 19:36:16 -08:00
Mike Hommey
414926b916 Bug 793767 - Use the executable file location to derive the update root. r=rstrong 2013-02-08 15:58:52 +01:00
Robert Strong
23a279658b Bug 753730 - Intermittent test_0110_general_svc.js failure in head_update.js | UPDATE TYPE complete. r=bbondy 2013-02-05 10:48:00 -08:00
Robert Strong
ff98fd9c24 Bug 767968 - Intermittent test_0201_app_launch_apply_update.js, test_0203_app_launch_apply_update.js | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\maintenanceservice_installer.exe'. r=bbondy 2013-02-04 17:54:13 -08:00
Robert Strong
9ea1cd0150 Bug 762032 - Intermittent test_0201_app_launch_apply_update_svc.js | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...\ExecutableDir.tmp\bin\uninstall\helper.exe'. r=bbondy 2013-02-04 17:54:02 -08:00
Robert Strong
49aee920ea Bug 695811 - Checking for updates logs two warnings about deprecated XMLHttpRequest attributes. r=bbondy, r=dhylands 2013-02-01 18:58:48 -08:00
Robert Strong
50e2943d8a Additional logging for Bug 835197 - Intermittent test_0201_app_launch_apply_update.js, test_0202_app_launch_apply_update_dirlocked.js, test_0203_app_launch_apply_update.js [Exception... 'Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFile.copyTo]'. r=bbondy 2013-02-01 11:36:08 -08:00
Robert Strong
157ca47999 Bug 836620 - Cleanup app binary copies used by app update xpcshell tests. r=bbondy 2013-01-31 12:31:52 -08:00
Ehsan Akhgari
32d278987e Bug 817477 - Remove support for global private browsing mode; r=jdm,glandium
--HG--
rename : browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/setup.js.in => browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/setup.js
rename : browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/tasks.js.in => browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/tasks.js
2013-01-29 13:12:13 -05:00
Robert Strong
d0f559c7f4 Significantly increase timeout to see if it makes a difference for Bug 814535 and bug 774014 - Intermittent test_0203_app_launch_apply_update.js, test_0203_app_launch_apply_update_svc.js Intermittent test_0201_app_launch_apply_update.js, test_0201_app_launch_apply_update_svc.js | launch application timer expired. r=bbondy 2013-01-28 12:23:27 -08:00
Robert Strong
6b202f1957 Bug 835090 - Where possible app update xpcshell tests should run on xulrunner. r=bbondy 2013-01-28 12:23:10 -08:00
Dave Hylands
af3bb6ca29 Bug 831701 - Finish active updates unless the user swtiches to a newer one. Remove stale updates. r=rstrong
Once the user starts to download an update, stick to that update until the user cancels the download and does a "Check Now".

If a newer update is started and a stale update is detected, remove the stale update.

If a download fails due an update being in the applied state, prompt the user to apply it.

If an update was fully downloaded, but interrupted during verification, then don't redownload.
2013-01-25 10:27:49 -08:00
Dave Hylands
802e24ff19 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
01c02154e4 Bug 830462 - Remove update.mar from sdcard when finished (or when starting a new download). r=rstrong 2013-01-14 20:29:46 -08:00
Dave Hylands
821f180a4d Bug 823695 - unsetenv LD_PRELOAD when running the updater. r=cjones 2013-01-14 23:18:44 -08:00
Robert Strong
808dbee277 Followup possible fix for Bug 814535 and Bug 774014 - Intermittent test_0201_app_launch_apply_update* and test_0203_app_launch_apply_update* | launch application timer expired. r=bbondy, a=test-only 2013-01-13 00:46:41 -08:00
Robert Strong
062a0de755 Possible fix for Bug 814535 and Bug 774014 - Intermittent test_0201_app_launch_apply_update* and test_0203_app_launch_apply_update* | launch application timer expired. r=bbondy 2013-01-12 23:30:11 -08:00
Dave Hylands
5f6cd11a09 Bug 813770 - Fix xpcshell update tests to work with new code. r=rstrong 2013-01-12 05:03:13 +01:00
Dave Hylands
bbea4b3632 Bug 813770 - Rebooting after update is downloaded but before it's applied doesn't show prompt to re-apply on subsequent restart. r=rstrong 2013-01-12 05:03:13 +01:00
Chris Peterson
f456453bfd Bug 829685 - Remove #include "prtypes.h" from some files that no longer use PR types. r=ehsan 2013-01-10 08:19:36 -08:00
Marshall Culpepper
84fb5c3fc7 Bug 816306: Part 2 - Report update HTTP errors to Gaia, and accompanying tests. r=fabrice 2013-01-10 18:13:39 +01:00
Marshall Culpepper
c669f32c0a Bug 816306: Part 1 - Report more network errors during update checks. r=bbondy 2013-01-10 18:10:19 +01:00
Dave Hylands
c6a8460838 Bug 785124 - Pt 8 - Fix test_0030_general.js to work when downloaded file goes to sdcard. 2013-01-10 14:46:40 +01:00
Dave Hylands
e703d645fc Bug 785124 - Pt 6 - Fix JS code that was failing xpcshell tests. r=marshall_law 2013-01-10 14:46:39 +01:00
Dave Hylands
a7e4a46c0b Bug 785124 - Pt 5 - Add extra asserts. r=dougt 2013-01-07 17:43:02 +01:00
Dave Hylands
707e873b0c 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
Dave Hylands
ffb1a18ac0 Bug 785124 - Pt 2 - JS changes to updater to allow storing update.mar to sdcard. r=marshall_law
From 93958fee051e9355930edba538eabeb91f4b442d Mon Sep 17 00:00:00 2001
 sdcard and lock sdcard while in use
---
 b2g/components/DirectoryProvider.js       |  154 ++++++++++++++++++++++++++---
 b2g/components/UpdatePrompt.js            |   16 ++-
 toolkit/mozapps/update/nsUpdateService.js |  124 ++++++++++++++++++++++-
 3 files changed, 276 insertions(+), 18 deletions(-)
* * *
Fix log stmt
2012-12-14 16:05:39 -08:00
Marshall Culpepper
e99016ec6c Bug 817821: Part 2 - Update tests for new B2G download events. r=dhylands 2013-01-08 17:13:32 +01:00
Phil Ringnalda
a3a5c77746 Back out 6737ce4d3ce6:599c37ed628c (bug 785124) for b2g Arm xpcshell orange in update tests 2013-01-07 22:59:32 -08:00
Dave Hylands
e4d6b5c4d2 Bug 785124 - Pt 5 - Add extra asserts. r=dougt 2013-01-07 17:43:02 +01:00
Dave Hylands
366c6b8f37 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
Dave Hylands
e3195587a3 Bug 785124 - Pt 2 - JS changes to updater to allow storing update.mar to sdcard. r=marshall
From 93958fee051e9355930edba538eabeb91f4b442d Mon Sep 17 00:00:00 2001
 sdcard and lock sdcard while in use
---
 b2g/components/DirectoryProvider.js       |  154 ++++++++++++++++++++++++++---
 b2g/components/UpdatePrompt.js            |   16 ++-
 toolkit/mozapps/update/nsUpdateService.js |  124 ++++++++++++++++++++++-
 3 files changed, 276 insertions(+), 18 deletions(-)
* * *
Fix log stmt
2012-12-14 16:05:39 -08:00
Dave Hylands
e293cbbd78 Bug 821168 - Use hardlinks for backing up pre-update files. r=eshan 2013-01-03 16:53:33 -08:00
Marshall Culpepper
6bd48a10f8 Bug 821412: Part 3 - Initial B2G update tests and smoketests. r=bbondy 2013-01-02 12:41:40 -06:00
Andrew Halberstadt
e9dde5c42f Bug 821919 - Re-enable toolkit/mozapps/update/test/unit/test_0030_general.js, r=rstrong 2012-12-19 12:57:09 -05:00
Robert Strong
b73ea37d27 Update xpcshell skip-if reason - Bug 821344 - test_bug595059.js and test_0081_prompt_uiAlreadyOpen.js update tests fails in B2G due to custom nsIUpdatePrompt. r=ahalberstadt, DONTBUILD 2012-12-18 18:44:17 -08:00
Cameron McCormack
b0db402ed9 Bug 822548 - Fix a bunch of JS warnings on startup. r=dao 2012-12-19 09:27:56 +11:00
Marshall Culpepper
81e2685a60 Bug 812584: Part 1 - Always forward update download errors in B2G. r=bbondy 2012-12-17 17:23:14 -06:00
Robert Strong
d08742bda0 Bug 821343 - TestAUSHelper doesn't exist for b2g xpcshell_updater tests, r=ahal 2012-12-16 15:53:57 -05:00
Robert Strong
071e2d0b76 Partial fix (all but test_0201_app_launch_apply_update_svc.js) for - Bug 762032 - Intermittent test_0201_app_launch_apply_update.js, test_0201_app_launch_apply_update_svc.js test_0203_app_launch_apply_update_svc.js | WindowsError: [Error 13] The process cannot access the file because it is being used by another process: '...helper.exe'. r=bbondy 2012-12-13 09:43:27 -08:00
Andrew Halberstadt
04eda3fcf0 Bug 817122 - Disable failing B2G xpcshell tests, enable debugger tests, r=mdas 2012-12-12 16:17:49 -05:00
Robert Strong
924a29af19 Test only change / possible fix for Bug 759639 - Intermittent test_0202_app_launch_apply_update_dirlocked_svc.js | test failed (with xpcshell return code: 0), | pending-service == pending, | exception thrown from do_timeout callback: 2147500036. r=bbondy 2012-12-07 11:03:05 -08:00
Ehsan Akhgari
e6ab13cd7a Bug 806745 - Part 0: Don't run test_bug497578.js in per-window PB builds 2012-12-06 00:53:33 -05:00
Brian R. Bondy
089c2c7f3a Bug 816111 - Remove appdir dependency for application update tests in xpcshell tests. r=rstrong 2012-11-29 23:26:25 -05:00
Marshall Culpepper
fb3ce1f70b Bug 813778: Don't attempt to retry when a FOTA update fails to apply in B2G. r=bbondy 2012-11-29 10:47:44 -06:00
Stephen Pohl
36020056fe 2 of 2 - Tests for Bug 813322 - Add ability to control time interval for restart prompt to apply update. r=bbondy 2012-11-28 20:57:11 -08:00
Stephen Pohl
9cd3f0a09f 1 of 2 - Main patch for Bug 813322 - Add ability to control time interval for restart prompt to apply update. r=bbondy 2012-11-28 20:56:32 -08:00
Fabrice Desré
78d69b3ad7 Bug 802228 - Check for app updates when we check for system update [r=marshall] 2012-11-15 12:52:19 -08:00
Brian R. Bondy
31ffadafc5 Bug 791829 - Tests for resuming a stopped/partial update. r=ehsan 2012-11-06 20:09:50 -05:00
Brian R. Bondy
a8752f2286 Bug 791829 - Add support for resuming a stopped/partial update. r=rstrong 2012-11-06 20:09:43 -05:00
Jeff Muizelaar
27e17373c7 Bug 801437. Breakage fix for feof(). r=ehsan
Macros make me sad.

--HG--
extra : rebase_source : 1265c3ef7e187c307269273e098ee92c020c2f59
2012-11-09 15:40:56 -05:00
Jeff Muizelaar
ebff2d339c Bug 801437. Reimplement ensure_copy. r=ehsan
The previous implementation would copy the entire file into memory which
would cause a huge amount of memory usage on when copying large files.
This version copies a block at a time to avoid this.
2012-11-08 16:57:49 -05:00
Marshall Culpepper
6f5a7f2629 Bug 809605: Add %PRODUCT_MODEL% token for update URLs in B2G. r=ehsan 2012-11-07 22:18:10 -05:00
Masatoshi Kimura
f16e6a5383 Bug 685202 - Cleanup the update directory if canApplyUpdates is false; r=ehsan 2012-11-05 19:08:21 -05:00
Brian R. Bondy
8c6c0955fc Bug 701613 - Add Win7 as supported OS in updater.exe.manifest. r= rstrong 2012-11-02 11:19:33 -04:00
Adri Hilviu
c6eab83044 Bug 805466 - Remove old MozUpdater-i folders in /tmp in PostUpdate. r=bbondy 2012-10-31 16:32:14 -04:00
Kyle Huey
45adfbf2c8 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
e6e6deb486 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
7457de64ad Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
a7bb0ec116 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
dd0cfd935a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Ehsan Akhgari
965c3bc123 Backed out changeset 73976ead8d6c (bug 800532) in order to fix bug 806028 2012-10-29 17:46:13 -04:00
Brian R. Bondy
4bc9400593 Bug 790496 - Make maintenance service errors stand out more. r=ehsan 2012-10-25 22:34:03 -04:00
Brian R. Bondy
7191586301 Bug 765598 - Remove newly created MozUpdater folders in tmp on post update. r=ehsan 2012-10-25 22:30:34 -04:00
Andres Hernandez
7ffb7d4b3c Bug 799784 - Replace usages of nsIPrivateBrowsingService.autoStarted with PrivateBrowsingUtils.permanentPrivateBrowsing; r=ehsan 2012-10-24 14:21:33 -06:00
Jeff Muizelaar
a01518cf47 Bug 800532. updater: Use low priority IO on OS X and Windows. r=bbondy
Uses low priority IO when doing background updates with the hope
that it will interfere less with the users system.
2012-10-11 16:47:52 -04:00
Ryan VanderMeulen
98abcd945f Merge the last PGO-green inbound changeset to m-c. 2012-10-19 21:43:03 -04:00
Robert Strong
a5938423c3 Test changes for Bug 774618 - Partner builds don't download complete update if partial fails, or show workaround information if complete fails. r=bbondy 2012-10-19 12:43:15 -07:00
Robert Strong
d3c8567db7 Main patch for Bug 774618 - Partner builds don't download complete update if partial fails, or show workaround information if complete fails. r=bbondy 2012-10-19 12:42:55 -07:00
Brian R. Bondy
4e8006398c Bug 802016 - Do not allow caching at all when checking for updates. r=rstrong 2012-10-17 13:41:35 -04:00
Brian R. Bondy
c8c89169ad Bug 792452 - Updater code updates for multi signature changes. r=bsmith 2012-10-17 09:39:43 -04:00
Brian R. Bondy
ca5d69fe83 Bug 801855 - Check update download progress to prevent overly large update from being downloaded. r=rstrong 2012-10-19 12:43:54 -04:00
Brian R. Bondy
00beaf55f1 Bug 801855 - Tests for MAR downloads will not be accepted if manifest size is different. r=rstrong 2012-10-19 12:43:51 -04:00
Marshall Culpepper
5c91ac1cf1 Bug 794211: Check for updates after coming online when a check fails because the network is offline. r=bbondy r=rstrong 2012-10-13 13:06:58 -05:00
Adri Hilviu
4ef6a7114a Bug 794234 - Get more information on WRITE_ERROR_SHARING_VIOLATION errors (error 36). r=bbondy 2012-10-11 21:54:58 -04:00
Ehsan Akhgari
2e41e62ebd Bug 797257 - Only include nsAlgorithm.h in archivereader.cpp on Windows; r=bbondy
We only need this header on Windows since nsVersionComparator.cpp uses NS_MIN
on Windows.  This change silences compiler warnings on other platforms.

--HG--
extra : rebase_source : dba778c59be41587c05e964f2328a4ae662130e3
2012-10-03 10:57:38 -04:00
Ehsan Akhgari
75bfa8064b Bug 797229 - Fix two warnings in updater.cpp; r=bbondy 2012-10-02 20:51:38 -04:00
Marshall Culpepper
017cf63ecf Bug 778349: Initial support for OS ("FOTA") updates in Gonk. r=rstrong r=bbondy r=fabrice 2012-09-30 21:55:51 -05:00
Chris Jones
578a772282 Bug 791902: updater umask needs to be 0022. r=dhylands 2012-09-19 01:48:14 -07:00
Andres Hernandez
ba43cd94bb Bug 721165 - Extract repeated code for retrieving CHANNEL information from Blocklist and Telemetry to a javascript module r=gavin 2012-09-10 10:54:41 -06:00
Ehsan Akhgari
78618df071 Bug 790453 - Rename the pref for background updates to app.update.staging.enabled; r=rstrong 2012-09-11 22:13:14 -04:00
Ehsan Akhgari
72aeeaa3e9 Bug 789422 - Part 3: Update the unit tests to test for the new behavior; r=rstrong 2012-09-11 14:12:51 -04:00
Ehsan Akhgari
7b006a90b5 Bug 789422 - Part 2: Ensure that the update.status directory exists before attempting to write to it; r=rstrong 2012-09-11 14:12:34 -04:00
Ehsan Akhgari
6c01ea7f35 Bug 789422 - Part 1: Remove UpdateStatusText because it does the exact same thing as UpdateStatusFile(const char*); r=rstrong 2012-09-11 14:11:54 -04:00
Ehsan Akhgari
579ca1c150 Bug 789958 - Do not attempt to modify the file permissions in the updater if the file is being opened in read-only mode; r=rstrong 2012-09-10 23:43:12 -04:00
Ehsan Akhgari
f530de3dd5 Backout bug 789422 for test bustage 2012-09-10 17:40:58 -04:00
Devdatta Akhawe
9827420b37 Bug 774395 - Measure prevalence of SSL MITM errors for updates (r=bbondy) 2012-09-08 09:23:42 -07:00
Ehsan Akhgari
4996d75258 Bug 789422 - Part 2: Ensure that the update.status directory exists before attempting to write to it; r=rstrong 2012-09-10 16:32:59 -04:00
Ehsan Akhgari
f91c18e8fa Bug 789422 - Part 1: Remove UpdateStatusText because it does the exact same thing as UpdateStatusFile(const char*); r=rstrong 2012-09-10 16:32:48 -04:00
Marshall Culpepper
c8db8050ae 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
Marshall Culpepper
ac30fffef2 Bug 781868: Clear WRAP_LDFLAGS for the updater in Gonk, so it doesn't link against mozglue. r=khuey 2012-08-27 12:23:09 -03:00
Marshall Culpepper
ba8c45700b Bug 764684: Enable update staging for B2G, and skip the update.test check. r=ehsan 2012-08-27 12:15:12 -03:00
Ehsan Akhgari
2962d2eed1 Bug 579517 - Part 5: Add missing StandardInteger.h #includes where needed; r=bsmedberg
Landing on a CLOSED TREE
2012-08-08 17:08:17 -04:00
Ehsan Akhgari
8c296bbcd4 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
Mark Capella
d35354cd9e Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Toolkits, r=ted, f=gps 2012-08-14 10:06:12 -04:00
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Mike Hommey
be451c22dc Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE 2012-08-04 10:38:41 +02:00
Mike Hommey
e79d87471e Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 08:48:56 +02:00
Blair McBride
c11391d111 Bug 780313 - Remove unnecessary preprocessing of Toolkit files. r=gavin 2012-08-04 13:22:55 +12:00
Matt Brubeck
0c2d460ca2 Bug 774789 - Add quotes around MOZ_APP_DISPLAYNAME to fix build errors on beta [r=ted] 2012-07-17 12:10:11 -07:00
Ehsan Akhgari
eb8c258145 Bug 767968 - Increase the amount of time we wait for the helper application to finish running in the updater tests; r=rstrong 2012-07-10 20:13:52 -04:00
Ehsan Akhgari
ad10d0e5c3 Bug 771766 - Preserve the case of the application installation directory when replacing the application after an update for it has been staged; r=rstrong 2012-07-09 20:50:16 -04:00
Nathan Froyd
5b30baa4c3 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Mark Banner
46c22a04d6 Bug 766264 Fix test failures in test_0201_app_launch_apply_update.js and test_0203_app_launch_apply_update.js when MOZ_MAINTENANCE_SERVICE isn't set for the build by correctly handling the applied state value. Also tidy up some error statements to provide better debug. r=ehsan 2012-07-05 08:42:03 +01:00
Siddharth Agarwal
e5365ab69f Bug 767827 - TestAUSReadStrings.cpp fails with 'unable to find platform specific path separator' under Pymake on Windows. r=rstrong 2012-06-26 22:39:17 +05:30
Neil Rashbrook
7b61c655b7 Bug 758354 Stop unnecessarily preprocessing chrome r=dolske 2012-06-26 00:11:16 +01:00
Brian R. Bondy
0505a31cba Bug 767471 - Report telemetry data for if the MozillaMaintenance service was ever manually uninstalled. r=rstrong 2012-06-25 15:17:45 -04:00
Ed Morley
38b8947933 Backout ec9451e9e830 (bug 758354) for PGO linux permaorange in browser_bug422590.js and friends 2012-06-25 19:14:43 +01:00
Neil Rashbrook
a95ac4a2a9 Bug 758354 Stop unnecessarily preprocessing chrome r=dolske 2012-06-25 09:24:49 +01:00
Brian R. Bondy
a36b6983f0 Bug 735975 - Get rid of UNEXPECTED_ERROR codes from updater error handling. r=ehsan 2012-06-21 19:40:47 -04:00
Brian R. Bondy
d66bdba6ff Bug 766567 - Figure out the source of WRITE_ERROR (7) errors in updater code. r=ehsan 2012-06-21 19:40:43 -04:00
Mike Hommey
13388d7565 Bug 763987 - Normalize autoconf.mk.in. r=ted 2012-06-20 09:00:48 +02:00
Mike Hommey
2c40a7fa85 Backout changeset 6984dace6afb (bug 763987) because of OSX opt jsreftest bustage 2012-06-20 10:55:59 +02:00
Mike Hommey
7d33543b83 Bug 763987 - Normalize autoconf.mk.in. r=ted 2012-06-20 09:00:48 +02:00
Mark Banner
d49e0abf6f Bug 757794 - Constant "command timed out: 1200 seconds without output" in test_0200_app_launch_apply_update.js and others. Ensure that timeout loops will always abort eventually. r=ehsan
--HG--
extra : rebase_source : d29af708ec3c8d26bb5bcc95c51e25b13f798072
2012-06-19 15:48:00 +01:00
Ryan VanderMeulen
1df0bbcdcc Merge inbound to m-c. 2012-06-16 09:38:43 -04:00
Brian R. Bondy
505064e416 Bug 763025 - Report telemetry data for the number of people that cannot upgrade due to permissions. r=rstrong 2012-06-15 11:59:35 -04:00
Brian R. Bondy
aa85cfc765 Bug 763018 - Report telemetry data for if background updates are enabled. r=rstrong 2012-06-15 11:59:35 -04:00
Brian R. Bondy
470c83fc9b Bug 763016 - Report telemetry data for if the MozillaMaintenance service is installed. r=rstrong 2012-06-15 11:59:35 -04:00
Brian R. Bondy
dd8cf25f67 Bug 763022 - Report telemetry data for the number of service related errors people encountered. r=rstrong 2012-06-15 11:59:35 -04:00
Brian R. Bondy
42e78780a1 Bug 763017 - Report telemetry data for if the MozillaMaintenance service is enabled. r=rstrong 2012-06-15 11:59:35 -04:00
Brian R. Bondy
52cd3783ba Bug 763012 - Report telemetry data for whether or not updates are automatic. r=rstrong 2012-06-15 11:59:35 -04:00
Brian R. Bondy
d04c812950 Bug 763011 - Report telemetry data for whether or not updates are enabled. r=rstrong 2012-06-15 11:59:35 -04:00
Ehsan Akhgari
bafa4505f1 Bug 757632 - Re-enable the test; r=rstrong 2012-06-13 10:30:07 -04:00
Ehsan Akhgari
6ec73dc93d Bug 764587 - Do not throttle the download of a complete mar if we fall back to a complete update after attempting to stage a partial update; r=rstrong 2012-06-13 22:00:03 -04:00
Ehsan Akhgari
3bc64d4216 Bug 764269 - Handle symbolic links properly when copying the installation directory before staging an update; r=rstrong 2012-06-13 20:38:56 -04:00
Ehsan Akhgari
40be4b6271 Bug 760577 - Part 4: Add full round-trip tests for keeping the mar file around and falling back to apply it at startup if replacing the application fails; r=rstrong
--HG--
rename : toolkit/mozapps/update/test/unit/test_0201_app_launch_apply_update.js => toolkit/mozapps/update/test/unit/test_0203_app_launch_apply_update.js
rename : toolkit/mozapps/update/test_svc/unit/test_0201_app_launch_apply_update_svc.js => toolkit/mozapps/update/test_svc/unit/test_0203_app_launch_apply_update_svc.js
2012-06-08 15:06:53 -04:00
Ehsan Akhgari
f8297e90d5 Bug 760577 - Part 3: Verify the fallback behavior on all the locked file tests; r=rstrong
--HG--
rename : toolkit/mozapps/update/test/unit/test_0161_appInUse_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0162_appInUse_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0172_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0174_fileLocked_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0173_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0175_fileLocked_xp_win_partial.js
rename : toolkit/mozapps/update/test/unit/test_0184_fileInUse_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0188_fileInUse_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0185_fileInUse_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0189_fileInUse_xp_win_partial.js
rename : toolkit/mozapps/update/test/unit/test_0186_rmrfdirFileInUse_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0190_rmrfdirFileInUse_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0187_rmrfdirFileInUse_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0191_rmrfdirFileInUse_xp_win_partial.js
rename : toolkit/mozapps/update/test_svc/unit/test_0161_appInUse_xp_win_complete_svc.js => toolkit/mozapps/update/test_svc/unit/test_0162_appInUse_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test_svc/unit/test_0172_fileLocked_xp_win_complete_svc.js => toolkit/mozapps/update/test_svc/unit/test_0174_fileLocked_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test_svc/unit/test_0173_fileLocked_xp_win_partial_svc.js => toolkit/mozapps/update/test_svc/unit/test_0175_fileLocked_xp_win_partial_svc.js
rename : toolkit/mozapps/update/test_svc/unit/test_0184_fileInUse_xp_win_complete_svc.js => toolkit/mozapps/update/test_svc/unit/test_0188_fileInUse_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test_svc/unit/test_0185_fileInUse_xp_win_partial_svc.js => toolkit/mozapps/update/test_svc/unit/test_0189_fileInUse_xp_win_partial_svc.js
rename : toolkit/mozapps/update/test_svc/unit/test_0186_rmrfdirFileInUse_xp_win_complete_svc.js => toolkit/mozapps/update/test_svc/unit/test_0190_rmrfdirFileInUse_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test_svc/unit/test_0187_rmrfdirFileInUse_xp_win_partial_svc.js => toolkit/mozapps/update/test_svc/unit/test_0191_rmrfdirFileInUse_xp_win_partial_svc.js
2012-06-14 09:26:02 -04:00
Ehsan Akhgari
ac82ce6e75 Bug 760577 - Part 2: Fall back to regular updates if the replacing step fails after we've staged an update; r=rstrong 2012-06-14 09:25:24 -04:00
Ehsan Akhgari
14e077ce86 Bug 760577 - Part 1: Keep the update files around when an update has been staged; r=rstrong 2012-06-14 09:21:13 -04:00
Ehsan Akhgari
4be95f94ff Bug 762032 - Increase the amount of time we wait for the helper application to finish running in the updater tests; r=rstrong 2012-06-11 10:36:21 -04:00
Brian R. Bondy
a17abf507b bug 740842 - When updating Firefox the service is used although the UAC is off in win8. r=rstrong 2012-06-15 17:43:58 -04:00
Ehsan Akhgari
299eef5789 Merge the last green changeset of mozilla-inbound to mozilla-central 2012-06-02 14:39:47 -04:00
Pranav Ravichandran
913a846852 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
3cb1fce0b2 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
d98ade3af7 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
741f3aa5e4 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
f0f2c4c6f3 Merge mozilla-central into mozilla-inbound 2012-06-01 17:22:53 -04:00
Ginn Chen
6da3ccb587 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
6508c6a4a5 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
e2a2f37105 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
4ca5e487c2 Merge mozilla-central into mozilla-inbound 2012-05-30 22:43:10 -04:00
Robert Strong
76299ad0c2 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
b80be89a87 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
4e3796a564 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
638c878b13 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
35799dd0ac Bug 757632 followup - Try to disable the test properly 2012-05-29 17:16:57 -04:00
Ehsan Akhgari
9d124404a4 Bug 757632 followup - Remove the test name from the manifest file; r=me 2012-05-29 17:03:36 -04:00
Ehsan Akhgari
ce033c3b11 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
869d0f838f Bug 692255 - Get rid of prefetch files on Windows for faster startup. r=rstrong 2012-05-27 22:40:48 -04:00
Ehsan Akhgari
83a556e6f2 Debugging code for bug 757632; r=me 2012-05-25 16:57:00 -04:00
Ehsan Akhgari
089ae618d3 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
329ae02b55 Bug 756960 - Iterate on a shallow copy while notifying downloadListeners. r=Mossop 2012-05-21 21:20:54 +02:00
Ehsan Akhgari
4cf7dcbd5e 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
066029ac7f 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
1ff26e1fb8 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
0ea3be6ccb 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
12f3ec812b Bug 757611 - pass a FILE* to ferror(), fixes build on OpenBSD - r=ehsan 2012-05-22 17:24:42 -04:00
Ehsan Akhgari
904efc4f7a 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
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian R. Bondy
1b38735da3 Bug 750850 - Delayed loading. r=ehsan 2012-05-05 09:21:53 -04:00
Brian R. Bondy
13b6966040 Bug 751652 - Disable MAR tests when security checks are disabled. r=rstrong 2012-05-04 08:09:14 -04:00
Brian R. Bondy
2a4bd445d4 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
c7c0958d8f Bug 735970 - Add xpcshell tests for version downgrades. r=rstrong, a=test-only. 2012-05-01 22:17:31 -04:00
Peng Kang
2fbc22e590 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
2603dd257a Bug 735969 - Revert the disable version downgrade check workaround from Bug 735784. r=rstrong 2012-04-12 19:06:19 -04:00
Chris Jones
429bcdc10b 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
3230be69f4 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
c1482b9eec 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
24ef69a7c8 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
222b5d3a39 Bug 735713 - MAR files should specify maximum version for version compare checks; r=ehsan 2012-03-14 19:39:40 -04:00
Ehsan Akhgari
8556581fe1 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
e3ed3939b7 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
c69bcdf686 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
a096bfe35d Bug 731901 - Update telemetry ping to use new telemetry name. r=rstrong 2012-03-09 14:01:50 -05:00
Brian R. Bondy
22c90e2a57 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
3612e788bd Bug 730792 - Enable new security checks for updates without the service. r=rstrong 2012-03-05 15:47:46 -05:00
Kyle Huey
55aedeb63f 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
79ad489863 Bug 725180 - Updater JS error handling for new error codes. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
5f2c644ddf Bug 725180 - Misc libmar fixes found from tests. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
2e8d83a148 Bug 728301 - Enable new security checks only for the service. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
52f09e123c Bug 721758 - Ability to configure updater to accept multiple MAR IDs. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
e257b10cd5 Bug 708690 - Updated MAR files for product information blocks. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
7710522f5d Bug 708690 - XPCShell test enhancements for product information blocks. r=rstrong 2012-02-24 16:29:42 -05:00
Brian R. Bondy
c12098b4fa Bug 708690 - Updater enhancements for product information blocks. r=rstrong 2012-02-24 16:29:41 -05:00
Brian R. Bondy
2f4e84f6b1 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
c9e0f526ad Bug 704285 - Certificates for updater cert check. r=rstrong 2012-02-24 16:29:41 -05:00