Bug 1753369 - Use sync PathUtils directory getters on mainthread in uriloader/ r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D140144
This commit is contained in:
Barret Rennie 2022-03-10 15:16:43 +00:00
parent 91646903d3
commit f3b8dc0cab

View file

@ -279,9 +279,8 @@ function setupMailHandler() {
let gDownloadDir;
async function setDownloadDir() {
let tmpDir = await PathUtils.getTempDir();
tmpDir = PathUtils.join(
tmpDir,
let tmpDir = PathUtils.join(
PathUtils.tempDir,
"testsavedir" + Math.floor(Math.random() * 2 ** 32)
);
// Create this dir if it doesn't exist (ignores existing dirs)