Commit Graph
275 Commits
Author SHA1 Message Date
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 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
Robert Strong 5f3ec55a02 Bug 1386176 Part 2 - App update patch. r=mhowell
MozReview-Commit-ID: 6GiFc0UpRw1
2017-08-14 13:20:03 -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
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
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
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 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
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
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 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
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
Robert Strong 1c3eb15d9a Part 2 - Bug 1359577 - Remove code in nsUpdateService.js for platforms that we no longer support. r=mhowell
Removes no longer needed gonk isOSUpdate from the update metadata
2017-04-28 16:39:31 -07:00
Robert Strong 69fd4dffa7 Part 1 - Bug 1359577 - Remove code in nsUpdateService.js for platforms that we no longer support. r=mhowell
Removes no longer needed Windows version checks and XP Windows service pack check
2017-04-28 16:38:51 -07:00
Robert Strong d727dc51f7 Client code - Bug 1358336 - app update tries to install staged updates for older versions. r=mhowell
Adds the startup version check so it is performed for all update types
Moves the update cleanup code into nsUpdateService.js
2017-04-28 16:38:15 -07:00
Aaron Klotz 46909150aa Bug 1359536: Fix incorrect ABI for js-ctypes declaration of GetVersionExW; r=mhowell
MozReview-Commit-ID: CyAnHFLwfrb
2017-04-25 12:29:20 -06:00
Robert Strong 768c4fb2e1 Bug 1357685 - Remove the remaining gonk code from application update. r=mhowell
The DWNLD_ERR_NO_PATCH_FILE (7) telemetry value for was removed for the UPDATE_DOWNLOAD_CODE_COMPLETE and UPDATE_DOWNLOAD_CODE_PARTIAL histograms since it was only needed for gonk
The FILESYSTEM_MOUNT_READWRITE_ERROR 43 error code for the updater was removed since it was only needed for gonk
The isOSUpdate and applyOsUpdate methods in nsIUpdateService.idl were removed since they were only needed for gonk
The remainder is general gonk code removal
2017-04-19 15:07:11 -07:00
Florian Queze aca1103c68 Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +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 42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst 4189eac09e Backed out changeset e1f191aad863 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 6c119a88d3 Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +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
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
Jim Porter 8c24212591 Bug 1346671 - Enable the no-useless-concat eslint rule in toolkit/ r=jaws
MozReview-Commit-ID: 1a422BiLEhK
2017-03-13 17:34:24 -05:00
Florian Quèze c7eae86054 Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01: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
Florian Quèze 13cfe1d3f3 Bug 1329182 - remove trailing newURI null parameters in toolkit/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein 0c2dd4fa35 Bug 1329017 - Enable the no-useless-return rule for eslint and use eslint --fix to autofix the errors. r=standard8
MozReview-Commit-ID: 2MhpvzUDgtK
2017-01-06 12:09:28 -05: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
Jared Wein e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher 2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein 34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Mark Banner dc46a8fba3 Bug 1322343 - Enable no-unused-vars in the local scope in toolkit/.eslintrc.js. r=mossop
MozReview-Commit-ID: CiIsUjQzp4D
2016-11-09 22:06:32 +00:00
Patrick McManus 1889ab84d2 Bug 1321783 - Make updater be networking conservative r=dkeeler r=rstrong r=dragana 2016-12-02 16:49:23 -05:00
Dave Townsend e7b1b3284f Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm
2016-11-11 15:22:34 -08:00
Robert Strong 8f46137d99 client code for Bug 1315506 - Remove app.update.url.override preference. r=mhowell 2016-11-11 12:58:47 -08:00
Robert Strong 8b747fbd81 client code for Bug 1315505 - Add min and max values to app update integer values configured by preferences as appropriate to prevent prefs from breaking app update. r=mhowell 2016-11-10 09:06:25 -08:00
Robert Strong 93e848dc5d client code - Bug 1314476 - Fix numerous app update eslint errors. r=mhowell 2016-11-02 10:09:54 -07:00
Jared Wein 0c024fa9ca Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8
MozReview-Commit-ID: 7Gx90a5y8t6
2016-10-24 13:14:19 -04:00
Eric Rahm 544eabdb4d Bug 1311223 - Stop using nsISupportsArray for window args. r=froydnj
WindowWatcher allows for either nsIArray or nsISupports array to be passed in
for the arguments param. This converts all internal usage to nsIArray.

MozReview-Commit-ID: DQjtIkobik0
2016-10-19 16:23:57 -07:00
Robert Strong 89e4701b97 Client code for Bug 1309125 - Allow configuration of the download throttle via the update.xml. r=mhowell 2016-10-12 11:37:45 -07:00
Robert Strong 2a18682644 bug 1301288 - set post update values earlier in startup so Firefox post update actions can be performed. r=mhowell 2016-09-08 13:07:15 -07:00
Robert Strong 4d75fa139e Bug 1299570 - Remove code for MozUpdater dir removals from the temp dir. r=mhowell 2016-08-31 17:23:39 -07:00
Robert Strong 7ee1f09c3e bug 1296207 app update client code - Remove unused app update billboard capability. r=mhowell 2016-08-25 13:32:11 -07:00
Robert Strong aea20ce551 Bug 1296097 - Use new XMLHttpRequest() instead of nsIXMLHttpRequest. 2016-08-18 12:03:38 -07:00
Robert Strong af5128cef8 Bug 1182352 client code - Remove custom cert check code from app update. r=mhowell 2016-08-18 10:34:23 -07:00
Wes Kocher bb3c3e2b8d Merge m-c to inbound a=merge 2016-08-17 17:24:02 -07:00