mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
cce84ce147
commit
4cbd3dd215
@ -504,8 +504,14 @@ let gDownloadObserver = {
|
||||
break;
|
||||
case "private-browsing":
|
||||
if (aData == "enter" || aData == "exit") {
|
||||
initStatement();
|
||||
buildDownloadList(true);
|
||||
// We might get this notification before the download manager
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user