Bug 406923 - Just started downloads don't know about their referrers until reopened. r=sdwilsh, a1.9=dsicore

This commit is contained in:
edward.lee@engineering.uiuc.edu 2007-12-14 02:08:45 -08:00
Родитель d40b68b387
Коммит 6a42c69b0c
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -81,6 +81,13 @@ DownloadProgressListener.prototype = {
// autoRemoveAndClose could have already closed our window...
try {
let dl = getDownload(aDownload.id);
// We should eventually know the referrer at some point
let referrer = aDownload.referrer;
if (referrer)
dl.setAttribute("referrer", referrer.spec);
// Update to the new state
dl.setAttribute("state", state);
updateStatus(dl);
gDownloadViewController.onCommandUpdate();