mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1719279 - Properly add $HOME/.cache/fontconfig allowance r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D119178
This commit is contained in:
parent
4a3911b1a1
commit
f7a9b9a730
@ -406,7 +406,7 @@ void SandboxBrokerPolicyFactory::InitContentPolicy() {
|
||||
for (const auto& dir : extraConfDirs) {
|
||||
rv = homeDir->Clone(getter_AddRefs(confDir));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = confDir->AppendNative(nsDependentCString(dir));
|
||||
rv = confDir->AppendRelativeNativePath(nsDependentCString(dir));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
nsAutoCString tmpPath;
|
||||
rv = confDir->GetNativePath(tmpPath);
|
||||
|
@ -468,6 +468,18 @@ async function testFileAccess() {
|
||||
func: readDir,
|
||||
cleanup: unpopulateFakeXdgConfigHome,
|
||||
});
|
||||
|
||||
let homeDir = GetHomeDir();
|
||||
let cacheFontConfigDir = homeDir.clone();
|
||||
cacheFontConfigDir.appendRelativePath(".cache/fontconfig");
|
||||
tests.push({
|
||||
desc: "$HOME/.cache/fontconfig/",
|
||||
ok: true,
|
||||
browser: webBrowser,
|
||||
file: cacheFontConfigDir,
|
||||
minLevel: minHomeReadSandboxLevel(),
|
||||
func: readDir,
|
||||
});
|
||||
}
|
||||
|
||||
if (isMac()) {
|
||||
|
Loading…
Reference in New Issue
Block a user