зеркало из https://github.com/mozilla/gecko-dev.git
fix for bug 58122 - find the anchor in the selection if there already is one
sr=ben, r=jag
This commit is contained in:
Родитель
01253d7390
Коммит
501b0ce99e
|
@ -53,6 +53,12 @@ var contentAreaDNDObserver = {
|
|||
if (domselection && !domselection.isCollapsed &&
|
||||
domselection.containsNode(draggedNode,false))
|
||||
{
|
||||
var anchors = domselection.anchorNode.getElementsByTagName("a");
|
||||
if (anchors.length > 0) {
|
||||
draggedNode = anchors[0];
|
||||
urlstring = draggedNode.href;
|
||||
}
|
||||
|
||||
var privateSelection = domselection.QueryInterface(Components.interfaces.nsISelectionPrivate);
|
||||
if (privateSelection)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче