mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 445339 - test_bug_406857.js crashing intermittently on Linux unittest VMs. disable alert service notifications. r=gavin
This commit is contained in:
parent
5fa6e8e5a0
commit
d3a645e267
@ -105,7 +105,7 @@ function cleanup()
|
||||
// removing rdf
|
||||
var rdfFile = dirSvc.get("DLoads", Ci.nsIFile);
|
||||
if (rdfFile.exists()) rdfFile.remove(true);
|
||||
|
||||
|
||||
// removing database
|
||||
var dbFile = dirSvc.get("ProfD", Ci.nsIFile);
|
||||
dbFile.append("downloads.sqlite");
|
||||
@ -168,7 +168,7 @@ function getDownloadListener()
|
||||
gDownloadCount--;
|
||||
do_test_finished();
|
||||
}
|
||||
|
||||
|
||||
if (gDownloadCount == 0)
|
||||
httpserv.stop();
|
||||
},
|
||||
@ -178,5 +178,9 @@ function getDownloadListener()
|
||||
};
|
||||
}
|
||||
|
||||
// Disable alert service notifications
|
||||
let ps = Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefBranch);
|
||||
ps.setBoolPref("browser.download.manager.showAlertOnComplete", false);
|
||||
|
||||
cleanup();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user