Bug 1393805 - Part 5 - Test that the system extensions dev dir is readable from content. r=bobowen

MozReview-Commit-ID: 7YN7S7R39CU

--HG--
extra : rebase_source : 092f1046a3f6b44c807f7632275615a6bdd674dd
This commit is contained in:
Haik Aftandilian 2017-09-27 16:01:57 -07:00
Родитель 1e86039b0d
Коммит 9d77bd9d20
2 изменённых файлов: 13 добавлений и 0 удалений

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

@ -405,6 +405,15 @@ async function testFileAccess() {
});
}
let sysExtDevDir = GetSystemExtensionsDevDir();
tests.push({
desc: "system extensions dev dir",
ok: true,
browser: webBrowser,
file: sysExtDevDir,
minLevel: 0,
});
if (isWin()) {
let extDir = GetPerUserExtensionDir();
tests.push({

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

@ -71,6 +71,10 @@ function GetHomeDir() {
return (homeDir);
}
function GetSystemExtensionsDevDir() {
return Services.dirsvc.get("XRESysExtDev", Ci.nsIFile);
}
function GetPerUserExtensionDir() {
return Services.dirsvc.get("XREUSysExt", Ci.nsIFile);
}