Commit Graph
255 Commits
Author SHA1 Message Date
Robert Strong 7e8231a87a Bug 1392913 - Remove updatev2.manifest support and other code that is no longer necessary for backwards compatibility after the next watershed. r=mhowell
Removes code to fallback to the updatev2.manifest file when the updatev3.manifest file isn't present
Removes all of the one-off file and dir removals in removed-files.in
Removes code for the OS X distribution directory migration and distribution directory migration tests that were added for v2 signing
Removes code to remove the precomplete file located in the root of the bundle on OS X
Removes code too fix the registry entry for the Windows crypto provider which was needed for Windows XP and Windows Vista
2017-09-27 13:57:18 -07:00
Robert Strong bd1b626b6d bug 1361102 - change tests to account for updating the application update xml files asynchronously. r=dothayer 2017-09-08 10:38:55 -07:00
Robert Strong a44d869b42 bug 1361102 - split out tests so they are more deterministic when updating the application update xml files asynchronously. r=dothayer 2017-09-08 10:38:41 -07:00
Robert Strong a2f10ba8bc test code - Bug 1367910 - Delete active-updates.xml instead of writing to it when there isn't an active update. r=dothayer 2017-08-31 12:20:22 -07:00
Masatoshi Kimura 0af76969af Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC
2017-08-04 17:49:22 +09:00
Robert Strong 038cfbf861 Bug 1105689 - use SHA384 certificates to sign app update mar files. Part 6 - app update test mar files signed with a SHA384 certificate. r=mhowell, a=app_update_sha384 2017-07-30 23:27:54 -07:00
Robert Strong b1856a62ae Bug 1105689 - use SHA384 certificates to sign app update mar files. Part 5 - app update test change for the new test mar file size. r=mhowell, a=app_update_sha384 2017-07-30 23:27:44 -07:00
Robert Strong 4f71d749a9 Bug 641212 - use lzma compression for application update. Part 4 - app update test mar files created using lzma compression. r=mhowell, a=app_update_lzma 2017-07-30 23:27:14 -07:00
Robert Strong 326d3268ca Bug 641212 - use lzma compression for application update. Part 3 - test changes to support the new test mar file size and additional logging. r=mhowell, a=app_update_lzma 2017-07-30 23:27:05 -07:00
Alessio Placitelli e28100a98c Bug 1120372 - Introduce the "update" ping. r=bsmedberg,gfritzsche,mhowell
This ping will be sent as soon as an update is ready to be applied, after
it's downloaded. This is currently enabled but protected behind the
'toolkit.telemetry.updatePing.enabled' preference.

MozReview-Commit-ID: 4TuM0e5MzBl
2017-07-12 12:12:18 +02:00
Robert Strong 937f6d29b4 Bug 1378641 - add more app update test logging. r=mhowell 2017-07-06 18:20:22 -07:00
Robert Strong 926998a23a Bug 1376612 - Relaunch callback app even when the pid is still present. r=mhowell
This reverts the change made in Bug 1375549 where the callback application isn't relaunched when the pid is still present. Since the end result of relaunching when the pid hasn't exited is no worse than not relaunching just go ahead and try to relaunch.
2017-06-28 16:18:09 -07:00
Robert Strong 4e020843ec Bug 1375549 - When the Firefox process doesn't exit apply the update anyway and don't relaunch the callback application. r=mhowell
This makes it so updating continue when the parent application doesn't exit (see bug 1375242) so any fixes to the parent application will be applied instead of leaving the client in a broken state.
Changes the wait time for the parent process to 30 seconds since the previous value of 70 seconds was based on nsTerminator which isn't used for this case. It still needs to be greater than the old value of 10 since we've seen cases lately where the process has taken more than 10 seconds.
2017-06-23 18:27:06 -07:00
Robert Strong 10a5b650f6 Bug 1373267 - Remove hashFunction and hashValue attributes from nsIUpdatePatch and code related to these attributes. r=mhowell 2017-06-15 17:15:28 -07:00
Robert Strong d05a99a232 Bug 1372523 - Update tests for the removal of the isSecurityUpdate, showNeverForVersion, and showPrompt attributes from nsIUpdate. r=mhowell
Converts the test functions getLocalPatchString, getLocalUpdateString, getRemotePatchString, and getRemoteUpdateString to use an object as a param.
2017-06-14 16:18:42 -07:00
Rajesh Kathiriya 7c0507b30e Bug 1370232 - Enabled the ESLint no-unneeded-ternary rule across mozilla-central. r=standard8
MozReview-Commit-ID: AH9ArRkjh78
2017-06-13 00:23:54 +05:30
Robert Strong 224e7a1ca1 Bug 1365845 - Reset app.update.cancelations after a successful update. r=mhowell 2017-06-06 20:26:14 -07:00
Robert Strong a67a2a2cdd Bug 1301517 - Cleanup the setting of post update values added by bug 1301288. r=mhowell
With these changes the latest update in updates.xml is always the latest update in progress even before applying the update. This makes it so that after a successful update the code in nsBrowserContentHandler.js will always get the correct custom update property.
2017-05-25 09:52:51 -07:00
Doug Thayer a6d6e3ff0b Bug 1359733 - (pt. 2.1) Move remaining test files r=rstrong
Tried to do the reverse order (move files then edit), but
reviewboard didn't seem to like me trying to undo what I had
already done. This should at least make the diffs clean though.

MozReview-Commit-ID: Ibcgg2Mc6MT
2017-05-18 15:55:00 -07:00
Doug Thayer 89a15e6773 Bug 1359733 - (pt. 2) Refactor gMenuButtonUpdateBadge r=rstrong
Since we now have a store of notifications that is global across
all windows, it no longer makes sense to consume the API from
within browser.js. This patch moves the browser.js logic out into
a jsm file that is wired up through nsBrowserGlue, such that it
will be lazily instantiated on the first update event it would
receive[1].

We decided to move this into toolkit, as this piece of the
system is fairly generic and shouldn't differ between
applications.

[1]: There is a change to nsBrowserGlue to use "global[module]"
instead of this[module]. This mirrors the code for all the other
types of notifications, and I suspect it was just a latent bug,
since the original diff that includes this line makes no use of
it.

MozReview-Commit-ID: 8EQdM9BOpgl
2017-05-19 08:56:22 -07:00
Robert Strong ad8081d8bf Followup eslint fix for Bug 1366918. r=me 2017-05-23 10:23:04 -07:00
Robert Strong 4d8fa53022 Bug 1366918 - Remove redundant tests from urlConstruction.js and add tests that can be added to test_UpdateUtils_url.js from urlConstruction.js. r=mhowell 2017-05-23 10:07:35 -07:00
Matt Howell dd3af9421b Bug 1355818 - Wait for staging to finish in the update wizard if downloading is done before the download page appears. r=rstrong
MozReview-Commit-ID: 1hTj35SYnDi
2017-05-14 10:23:43 -07:00
Robert Strong a494d36f27 Test code - Bug 1362267 - Replace requests are failing on Windows and falling back to normal updates. r=mhowell
Use an environment var for the test updater's current working dir
2017-05-05 12:46:21 -07:00
Robert Strong 31807b391d Bug 1358336 - followup test only fix to handle the different staging location on OS X. r=me 2017-04-28 18:12:00 -07:00
Robert Strong 22b9fb800d Test code - Bug 1358336 - app update tries to install staged updates for older versions. r=mhowell 2017-04-28 16:38:33 -07:00
Robert Strong a59b8ed6e4 Test code - Bug 1234401 - check that the patch dir subdirectory is valid. r=mhowell 2017-04-28 16:37:47 -07:00
Robert Strong 4ee2bcb53e Test code - Bug 1348645 - check that the app update callback path is valid. r=mhowell 2017-04-28 16:37:26 -07:00
Robert Strong 95e972d6db Test code - Bug 1342742 - check that the app update patch dir, install dir, and working dir paths are valid. r=mhowell 2017-04-28 16:36:57 -07:00
Florian Queze 6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Aaron Klotz 0d59a92ab7 Bug 1358552: Fix incorrect ABI specification in js-ctypes declarations in toolkit; r=froydnj
MozReview-Commit-ID: JuNNtbNC5pe
2017-04-25 13:00:23 -06:00
Florian Queze ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 4cd95d4a02 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst 42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze 35cd8ba883 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Robert Strong 7fd5f9815c Bug 1355361 - nsUpdateProcessor::ProcessUpdate should use the directory service instead of nsXREDirProvider (also removes app update gonk support). r=mhowell
Since the ApplyUpdate and SwitchToUpdatedApp functions are almost entirely the same this moves everything into ApplyUpdate.
Removes most of the gonk code from application update.
Makes client code and xpcshell tests use the same code for directory providers in nsUpdateDriver.cpp.
2017-04-12 18:07:07 -07:00
Robert Strong dee68a6a8e Test only - Bug 1355361 - function checkCallbackServiceLog is no longer used after bug 1354850. r=mhowell 2017-04-11 13:33:13 -07:00
Robert Strong f6e5b9db83 Test only - Bug 1354850 - Use updater to run general app update service tests and remove gonk test code. r=mhowell 2017-04-10 13:00:06 -07:00
Doug Thayer a5b27a8e9b Bug 893505 - Simplify the application update UI r=chmanchester,enndeakin+6102,Gijs,rstrong
There's quite a few changes in here. At a high level, all we're trying to do
is to replace the old update popup with a less intrusive and more modern
doorhanger (set of doorhangers) for various update failure conditions.

MozReview-Commit-ID: 24sESMTosNX
2017-03-21 13:50:09 -07:00
Mark Banner ec9074e132 Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
MozReview-Commit-ID: LH0CQOPfoe6
2017-03-20 12:36:37 +01:00
Robert Strong e25d9d847f Bug 1345663 - Remove skip-if value from tests for Windows versions that are no longer supported. r=mhowell 2017-03-08 17:01:04 -08:00
Mike Shal 88cb73b40b Bug 1340699 - Move TestAUSReadStrings into ausReadStrings.js; r=rstrong,ted
This pulls the test out of 'make check' and runs it as part of xpcshell
instead.

MozReview-Commit-ID: 7DJAvrG7Tq1
2017-03-03 10:59:51 -05:00
Andrew Halberstadt 3f9cbf87a1 Bug 1333564 - [manifestparser] Stop supporting ';' as a valid comment character, r=jmaher
It turns out there are shockingly few cases of manifestparser manifests that actually use the ';'
character as a comment. Because we will soon allow inline comments, deprecating the use of ';' will
ensure that values are allowed to have semicolons in them.

Even without inline comments, might as well enforce consistency across manifests.

MozReview-Commit-ID: AEPPQFdNXG0
2017-01-25 14:38:37 -05:00
Florian Quèze 91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Mark Banner 55868dde7c Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00
Jared Wein 0ec522d5b6 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a
2017-01-17 09:48:17 -06:00
Florian Quèze 63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Jared Wein 242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00