mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
r=mkaply, sr=blizzard OS/2 only - if the web page has no title, use the URL for drag/drop
This commit is contained in:
parent
f4903acd4f
commit
c558c7da22
@ -134,7 +134,10 @@ NS_IMETHODIMP nsDragService::InvokeDragSession(nsIDOMNode *aDOMNode, nsISupports
|
||||
{
|
||||
holder.Left(url, lineIndex);
|
||||
holder.Mid ( linkName, lineIndex + 1, (len/2) - (lineIndex + 1) );
|
||||
dragitem.hstrTargetName = DrgAddStrHandle(ToNewCString(linkName));
|
||||
if (linkName.Length() > 0)
|
||||
dragitem.hstrTargetName = DrgAddStrHandle(ToNewCString(linkName));
|
||||
else
|
||||
dragitem.hstrTargetName = DrgAddStrHandle(ToNewCString(url));
|
||||
dragitem.hstrSourceName = DrgAddStrHandle(ToNewCString(url));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user