Bug 1333064 - Unblocked malware downloads are styled incorrectly in the Downloads Panel. r=mak

MozReview-Commit-ID: IT4Dd9tBzt0

--HG--
extra : rebase_source : d72e51e61e0bac64343e2ed2273239e0b2b8adc2
This commit is contained in:
Paolo Amadini 2017-01-23 15:53:15 +01:00
parent c902a455bc
commit 68b38b6b90

View File

@ -114,7 +114,7 @@ this.DownloadsViewUI.DownloadElementShell.prototype = {
this.element.setAttribute("state",
DownloadsCommon.stateOfDownload(this.download));
if (this.download.error &&
if (!this.download.succeeded && this.download.error &&
this.download.error.becauseBlockedByReputationCheck) {
this.element.setAttribute("verdict",
this.download.error.reputationCheckVerdict);