Bug 1776304 - Port osfile.jsm usage to IOUtils in browser/components/downloads r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D150203
This commit is contained in:
Barret Rennie 2022-08-04 20:23:05 +00:00
Родитель fec6715f25
Коммит 356649ab06
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -3,8 +3,6 @@
"use strict";
const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");
let gMimeSvc = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
let gHandlerSvc = Cc["@mozilla.org/uriloader/handler-service;1"].getService(
Ci.nsIHandlerService
@ -33,7 +31,7 @@ async function createDownloadFile() {
}
info("Created download directory: " + gDownloadDir);
TestFiles.txt = await createDownloadedFile(
OS.Path.join(gDownloadDir, "downloaded.txt"),
PathUtils.join(gDownloadDir, "downloaded.txt"),
"Test file"
);
info("Created downloaded text file at:" + TestFiles.txt.path);