Bug 1540191 - Add ability to disable BITS download for an update using the advertised update.xml. r=bytesized

Differential Revision: https://phabricator.services.mozilla.com/D28156

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Robert Strong 2019-04-19 17:07:36 +00:00
Родитель b9fbeafa41
Коммит 2255b6c575
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -3927,6 +3927,10 @@ Downloader.prototype = {
this.isCompleteUpdate = this._patch.type == "complete";
let canUseBits = this._canUseBits(this._patch);
// Allow the advertised update to disable BITS.
if (this._update.getProperty("disableBITS") != null) {
canUseBits = false;
}
if (!canUseBits) {
this._downloaderName = "internal";
}