mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fix bug # 43906: non-existant file URLs can cause template failure for bookmarks. R=waterson
This commit is contained in:
parent
07676e0db7
commit
52b6f1cf49
@ -808,10 +808,12 @@ FileSystemDataSource::ArcLabelsOut(nsIRDFResource *source,
|
||||
if (NS_FAILED(rv = fileChannel->GetFile(getter_AddRefs(aDir))))
|
||||
return(rv);
|
||||
|
||||
PRBool isDirFlag = PR_FALSE;
|
||||
rv = aDir->IsDirectory(&isDirFlag);
|
||||
if (NS_FAILED(rv) && (rv != NS_ERROR_FILE_NOT_FOUND))
|
||||
return(rv);
|
||||
PRBool isDirFlag = PR_FALSE;
|
||||
|
||||
// ignore any errors from IsDirectory()
|
||||
// so that non-existant file URLs don't confuse the template builder
|
||||
nsresult temprv;
|
||||
temprv = aDir->IsDirectory(&isDirFlag);
|
||||
|
||||
nsCOMPtr<nsISupportsArray> array;
|
||||
rv = NS_NewISupportsArray(getter_AddRefs(array));
|
||||
|
Loading…
Reference in New Issue
Block a user