зеркало из https://github.com/mozilla/gecko-dev.git
Bug 463885 - Entering the Private Browsing mode may not always empty the download manager list; r=sdwilsh, a=blocking1.9.1+
This commit is contained in:
Родитель
917479f311
Коммит
e2b6cb71f1
|
@ -504,8 +504,14 @@ let gDownloadObserver = {
|
||||||
break;
|
break;
|
||||||
case "private-browsing":
|
case "private-browsing":
|
||||||
if (aData == "enter" || aData == "exit") {
|
if (aData == "enter" || aData == "exit") {
|
||||||
initStatement();
|
// We might get this notification before the download manager
|
||||||
buildDownloadList(true);
|
// service, so the new database connection might not be ready
|
||||||
|
// yet. Defer this until all private-browsing notifications
|
||||||
|
// have been processed.
|
||||||
|
setTimeout(function() {
|
||||||
|
initStatement();
|
||||||
|
buildDownloadList(true);
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче