diff --git a/toolkit/mozapps/update/nsUpdateService.js b/toolkit/mozapps/update/nsUpdateService.js index efc900086e92..4ec887e179e7 100644 --- a/toolkit/mozapps/update/nsUpdateService.js +++ b/toolkit/mozapps/update/nsUpdateService.js @@ -3598,7 +3598,15 @@ class ChannelDownloader extends CommonDownloader { this._bkgFileSaver.onStartRequest(request, context); if (request instanceof Ci.nsIResumableChannel) { - this._patch.setProperty("entityID", request.entityID); + // Reading the entityID can throw if the server doesn't allow resuming. + try { + this._patch.setProperty("entityID", request.entityID); + } catch (ex) { + if (!(ex instanceof Components.Exception) || + ex.result != Cr.NS_ERROR_NOT_RESUMABLE) { + throw ex; + } + } } var um = Cc["@mozilla.org/updates/update-manager;1"].