mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
8401592add
commit
9cb05ac07d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user