Commit Graph
1511 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
Chris Manchester 67a3d90503 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP
2017-09-11 11:33:26 -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 619356b08a bug 1361102 - update the application update xml files asynchronously for writes and deletions. r=dothayer 2017-09-08 10:38:31 -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
Robert Strong 72c814616c client code - Bug 1367910 - Delete active-updates.xml instead of writing to it when there isn't an active update. r=dothayer
When there are no updates to write to an xml file just delete the associated xml file
Cleaned up loading of the updates.xml and active-update.xml files so |_ensureUpdates| is no longer needed
Added dirty check for whether to write the update history in updates.xml
Adds errorCode property to nsIUpdatePatch so it is saved to the xml
Adds errorCode for trying to apply an older version or same version with the same build ID
Adds errorCode for when there is a no status file
Adds errorCode for channel change
2017-08-31 12:20:05 -07:00
Eric Rahm 4d399e631a Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj 2017-08-11 17:45:18 -07:00
Robert Strong 5f3ec55a02 Bug 1386176 Part 2 - App update patch. r=mhowell
MozReview-Commit-ID: 6GiFc0UpRw1
2017-08-14 13:20:03 -07:00
Evan Tseng a7aac69e8b Bug 1382135 - Remove all colon signs on sub-dialogs because we already removed them all on each category pane and we should make same thing for sub-dialogs. r=jaws
MozReview-Commit-ID: 8md6CFBSM3B
2017-08-01 11:54:54 +08: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 7e4b48f7c2 Bug 1105689 - use SHA384 certificates to sign app update mar files. Part 4 - app update SHA384 DER encoded certtificates. r=mhowell, a=app_update_sha384 2017-07-30 23:27:40 -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
Robert Strong f03959ddf1 Bug 641212 - use lzma compression for application update. Part 2 - add xe-embedded decompression support to the updater. r=mhowell, , a=app_update_lzma
Changes to the libmar host utilities (mar and signmar) are backwards compatible with the previous versions of mar and signmar
2017-07-30 23:27:00 -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
Doug Thayer 20bdee946e Bug 1383904 - Show old elevation dialog on elevation fail r=rstrong a=kwierso
The patch which originally disabled this seems to have been in error, thinking it was the cause of failing tests on try. Can't provide much more context than that.

MozReview-Commit-ID: 9h1pXVJeDCG
2017-07-24 16:08:53 -07:00
Doug Thayer 59161ddff4 Bug 1382706 - Listen for pending-elevate in Update-Listener r=rstrong
We were missing a possible status in the list for the downloaded
topic. This should be all that we need to get the notification to
show up.

MozReview-Commit-ID: EQSccrdv30Y
2017-07-20 16:09:36 -07:00
Zibi Braniecki b8b8d5d6a8 Bug 1380278 - UpdateUtils.getLocale to Fetch API for async I/O. r=florian,whimboo
The NetUtils sync I/O shows up in the profile logs, so we want to switch the
function that loads `update.locale` file to be async.

MozReview-Commit-ID: AEYKiivsNl0
2017-07-12 10:34:23 -07:00
Carsten "Tomcat" Book 8219e29879 merge mozilla-inbound to mozilla-central a=merge 2017-07-07 10:35:44 +02:00
Sylvestre Ledru 9d4a84d778 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Doug Thayer a45975ed41 Bug 1377098 - Don't dismiss restart notifications r=rstrong
Since the restart itself will clear the restart notification if
it's successful, there's no need to actually dismiss it even on
the main action being executed. Accordingly, this patch changes
it to pass the "dismiss" field to the main action, which will
cause the main action to simply degrade the doorhanger to a
badge.

MozReview-Commit-ID: 5FKTTihIoe4
2017-06-29 11:39:02 -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 937f6d29b4 Bug 1378641 - add more app update test logging. r=mhowell 2017-07-06 18:20:22 -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
Robert Strong 4e7fc852fb Bug 1372523 - Remove the isSecurityUpdate, showNeverForVersion, and showPrompt attributes from nsIUpdate and the use of these attributes. r=mhowell 2017-06-14 16:18:05 -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 1771bb30af Bug 1370634 - Make the time to wait the callback application (e.g. firefox.exe) to exit in the updater to be greater than the application's watchdog timer. r=mhowell 2017-06-06 20:27:21 -07:00
Robert Strong 224e7a1ca1 Bug 1365845 - Reset app.update.cancelations after a successful update. r=mhowell 2017-06-06 20:26:14 -07:00
Doug Thayer 8cb383ff7c Bug 1337007 - Clear umask while updating on OSX r=rstrong,spohl
On OSX, we want the updater to behave the same as when a user
drags a .dmg to the /Applications directory. When the user does
this, OSX does not follow their umask settings, assuming the user
wants to install the application for all users. The updater
should behave similarly.

MozReview-Commit-ID: JXFI9mW9erL
2017-05-26 14:45:34 -07:00
Doug Thayer a6d514e391 Bug 1365204 - Add update badge histogram r=bsmedberg,rstrong
Currently we can't differentiate between when a badge is shown
and a doorhanger is shown. This creates an additional problem
where if the badge progresses into a doorhanger after a window of
time has passed, it registers as two notifications shown, when
logically it is one. This splits out badges and doorhangers to
remedy that.

MozReview-Commit-ID: CTTaWDG1tah
2017-05-24 09:32:01 -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
Robert Strong b532550028 Bug 1365861 - Minor gonk cleanup in nsUpdateService.js. r=mhowell
Removes unused gonk code
Changes use of Array.prototype.indexOf(val) != -1 to Array.prototype.includes(val)
Some very minor indentation and logging cleanup
2017-05-18 11:33:24 -07:00
Matt Howell 6b859899d5 Bug 1355818 - followup to fix eslint error. r=me
MozReview-Commit-ID: 3Gudztk76qG
2017-05-16 19:34:49 -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
Florian Quèze ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Doug Thayer 71bdb9abf4 Bug 1358363 - Show PanelUI notifications when window focused r=rstrong
Right now notifications displayed in non-focused windows are
causing that window to be focused. This is annoying. We could work
to make the doorhangers not focus the other windows, but a simpler
solution is to just not show the doorhanger until the window is
focused. This has the added benefit of ensuring that the doorhangers
entry animation is seen by the user, increasing the likelihood that
they will notice it.

Additionally, some existing tests involving extra windows were
refactored. I stripped the old tests of their extra windows and
created new tests specifically to test the behavior of background
windows. These tests were modeled off of the background window
tests of PopupNotifications.jsm, which create a new window knowing
that this will cause the existing window to be the background,
rather than explicitly manipulating the focus of the two windows.

MozReview-Commit-ID: 1fjrDOhEKCw
2017-04-21 08:57:28 -07:00
Matt Howell b26476bb39 Bug 1363275 - Make the updater progress dialog DPI-aware on Windows. r=rstrong
MozReview-Commit-ID: FPjcbzW2RPY
2017-05-09 10:47:24 -07:00
Frederik Braun fda653356c Bug 1359350: Add no-eval rule to eslint config (and whitelist failures in tests) r=standard8
MozReview-Commit-ID: 4nYlX4sSdbF
2017-05-08 14:50:50 +02:00
Robert Strong 35fa8554be Client code - Bug 1362267 - Replace requests are failing on Windows and falling back to normal updates. r=mhowell
Restore chdir for replace requests in updater.cpp
2017-05-05 12:46:25 -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
Tom Tromey 98e2336080 Bug 1334283 - use MOZ_FORMAT_PRINTF in toolkit/mozapps/update; r=rstrong
Use MOZ_FORMAT_PRINTF in toolkit/mozapps/update, and fix the one
erroneous printf that this detected.

MozReview-Commit-ID: 5dzyMOZwNDG
2017-05-02 08:55:19 -06:00