mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 01:08:21 +00:00
Fix directory creation permissions so files can actually be saved in them! b=120307 r=brade@netscape.com sr=blizzard@mozilla.org a=asa@mozilla.org
This commit is contained in:
parent
e971c0c072
commit
605aaf0df3
@ -737,7 +737,7 @@ nsresult nsWebBrowserPersist::SaveDocumentInternal(
|
|||||||
|
|
||||||
if (localDataPath)
|
if (localDataPath)
|
||||||
{
|
{
|
||||||
localDataPath->Create(nsILocalFile::DIRECTORY_TYPE, 0664);
|
localDataPath->Create(nsILocalFile::DIRECTORY_TYPE, 0755);
|
||||||
PRBool exists = PR_FALSE;
|
PRBool exists = PR_FALSE;
|
||||||
PRBool isDirectory = PR_FALSE;
|
PRBool isDirectory = PR_FALSE;
|
||||||
localDataPath->Exists(&exists);
|
localDataPath->Exists(&exists);
|
||||||
@ -984,7 +984,6 @@ nsWebBrowserPersist::CalculateAndAppendFileExt(nsIURI *aURI, nsIChannel *aChanne
|
|||||||
|
|
||||||
if (mimeInfo)
|
if (mimeInfo)
|
||||||
{
|
{
|
||||||
PRBool matchingExt = PR_FALSE;
|
|
||||||
nsXPIDLCString fileName;
|
nsXPIDLCString fileName;
|
||||||
localFile->GetLeafName(getter_Copies(fileName));
|
localFile->GetLeafName(getter_Copies(fileName));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user