Bug 194357: Dragging and dropping a Windows file shortcut (.lnk) in the browser window doesn't work, patch by Ryan Jones <sciguyryan+bugzilla@gmail.com>, r=biesi, sr=darin

This commit is contained in:
gavin%gavinsharp.com 2006-11-06 14:44:28 +00:00
parent 8401592add
commit 9cb05ac07d

View File

@ -91,7 +91,7 @@ nsresult
net_GetFileFromURLSpec(const nsACString &aURL, nsIFile **result)
{
nsresult rv;
nsCOMPtr<nsILocalFile> localFile(
do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &rv));
if (NS_FAILED(rv)) {
@ -99,6 +99,8 @@ net_GetFileFromURLSpec(const nsACString &aURL, nsIFile **result)
return rv;
}
localFile->SetFollowLinks(PR_TRUE);
const nsACString *specPtr;
nsCAutoString buf;