зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b9fbeafa41
Коммит
2255b6c575
|
@ -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";
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче