Commit Graph

600 Commits

Author SHA1 Message Date
Tatiana Meshkova
d1a3e88b7f 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
77eebe60e5 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
362f974085 Bug 793767 - Use the executable file location to derive the update root. r=rstrong 2013-02-08 15:58:52 +01:00
Robert Strong
aea7210789 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
e2499456c7 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
19f32a6557 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
33b482a03c 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
235a0bf794 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
a8989333ee Bug 836620 - Cleanup app binary copies used by app update xpcshell tests. r=bbondy 2013-01-31 12:31:52 -08:00
Ehsan Akhgari
84c4ac3c75 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
5217cafea2 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
e7d323cd99 Bug 835090 - Where possible app update xpcshell tests should run on xulrunner. r=bbondy 2013-01-28 12:23:10 -08:00
Dave Hylands
7884b269e2 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
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
fe242338a7 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
e428e8aeb6 Bug 823695 - unsetenv LD_PRELOAD when running the updater. r=cjones 2013-01-14 23:18:44 -08:00
Robert Strong
3ae4f9de83 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
ae23389930 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
1716f2b6c3 Bug 813770 - Fix xpcshell update tests to work with new code. r=rstrong 2013-01-12 05:03:13 +01:00
Dave Hylands
ec0f13f305 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
34d009dfe8 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
8b682ea320 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
e7dcfee651 Bug 816306: Part 1 - Report more network errors during update checks. r=bbondy 2013-01-10 18:10:19 +01:00
Dave Hylands
9f0a30d9b0 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
062761000b 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
c73c4fb662 Bug 785124 - Pt 5 - Add extra asserts. r=dougt 2013-01-07 17:43:02 +01: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
Dave Hylands
910cba180d 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
1d3e80011e Bug 817821: Part 2 - Update tests for new B2G download events. r=dhylands 2013-01-08 17:13:32 +01: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
a09ec02d75 Bug 785124 - Pt 5 - Add extra asserts. r=dougt 2013-01-07 17:43:02 +01: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
Dave Hylands
b267ce1d8a 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
8703bba79a Bug 821168 - Use hardlinks for backing up pre-update files. r=eshan 2013-01-03 16:53:33 -08:00
Marshall Culpepper
84c6f6eaab Bug 821412: Part 3 - Initial B2G update tests and smoketests. r=bbondy 2013-01-02 12:41:40 -06:00
Andrew Halberstadt
86516d673d 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
e08c361e97 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
a86c49ceeb Bug 822548 - Fix a bunch of JS warnings on startup. r=dao 2012-12-19 09:27:56 +11:00
Marshall Culpepper
df4c17c4b0 Bug 812584: Part 1 - Always forward update download errors in B2G. r=bbondy 2012-12-17 17:23:14 -06:00
Robert Strong
e96e4f573f Bug 821343 - TestAUSHelper doesn't exist for b2g xpcshell_updater tests, r=ahal 2012-12-16 15:53:57 -05:00
Robert Strong
b9f3771e2b 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
319f003fc9 Bug 817122 - Disable failing B2G xpcshell tests, enable debugger tests, r=mdas 2012-12-12 16:17:49 -05:00
Robert Strong
0dc65e4c47 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
86d63844d5 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
4d65c39a7a Bug 816111 - Remove appdir dependency for application update tests in xpcshell tests. r=rstrong 2012-11-29 23:26:25 -05:00
Marshall Culpepper
e5f001102d 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
4789d84759 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
59d91444e7 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é
615ecd5214 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
91c64afae4 Bug 791829 - Tests for resuming a stopped/partial update. r=ehsan 2012-11-06 20:09:50 -05:00