Bug 406923 - Just started downloads don't know about their referrers until reopened. r=sdwilsh, a1.9=dsicore
This commit is contained in:
Родитель
d40b68b387
Коммит
6a42c69b0c
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче