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; let gDownloadDir;
async function setDownloadDir() { async function setDownloadDir() {
let tmpDir = await PathUtils.getTempDir(); let tmpDir = PathUtils.join(
tmpDir = PathUtils.join( PathUtils.tempDir,
tmpDir,
"testsavedir" + Math.floor(Math.random() * 2 ** 32) "testsavedir" + Math.floor(Math.random() * 2 ** 32)
); );
// Create this dir if it doesn't exist (ignores existing dirs) // Create this dir if it doesn't exist (ignores existing dirs)