# HG changeset patch # User Gian-Carlo Pascutto # Date 1509037023 -7200 # Node ID 6c3adb8e7433a7e0c8a9c7173a758a62e044621c # Parent e690f560a2ad9d53cf362ab4be959bf8db79462d Bug 1386404 - Enable access to the entire chrome dir from content. r=jld This may be required if people have @import in their userContent.css, and in any case our tests check for this. MozReview-Commit-ID: 8uJcWiC2rli diff --git a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp --- a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp +++ b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp @@ -424,23 +424,20 @@ SandboxBrokerPolicyFactory::GetContentPo rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR, getter_AddRefs(profileDir)); if (NS_SUCCEEDED(rv)) { nsCOMPtr workDir; rv = profileDir->Clone(getter_AddRefs(workDir)); if (NS_SUCCEEDED(rv)) { rv = workDir->AppendNative(NS_LITERAL_CSTRING("chrome")); if (NS_SUCCEEDED(rv)) { - rv = workDir->AppendNative(NS_LITERAL_CSTRING("userContent.css")); + nsAutoCString tmpPath; + rv = workDir->GetNativePath(tmpPath); if (NS_SUCCEEDED(rv)) { - nsAutoCString tmpPath; - rv = workDir->GetNativePath(tmpPath); - if (NS_SUCCEEDED(rv)) { - policy->AddPath(rdonly, tmpPath.get()); - } + policy->AddDir(rdonly, tmpPath.get()); } } } rv = profileDir->Clone(getter_AddRefs(workDir)); if (NS_SUCCEEDED(rv)) { rv = workDir->AppendNative(NS_LITERAL_CSTRING("extensions")); if (NS_SUCCEEDED(rv)) { nsAutoCString tmpPath;