зеркало из https://github.com/mozilla/gecko-dev.git
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 --HG-- extra : rebase_source : 38bd2a2ffc593bf94b3c16f0c755d169d5998f7f
This commit is contained in:
Родитель
fff36a228d
Коммит
88fc2f8563
|
@ -451,13 +451,10 @@ SandboxBrokerPolicyFactory::GetContentPolicy(int aPid, bool aFileProcess)
|
|||
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче