зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f4903acd4f
Коммит
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));
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче