зеркало из https://github.com/mozilla/gecko-dev.git
Bug 503966, dragging tab to bookmarks sidebar opens new window, fix this by passing the dataTransfer to the view, r=sdwilsh
This commit is contained in:
Родитель
39f2df2a25
Коммит
16538c1ff6
|
@ -760,7 +760,7 @@
|
|||
orientation = Ci.nsITreeView.DROP_ON;
|
||||
}
|
||||
|
||||
return this.view.canDrop(row.value, orientation);
|
||||
return this.view.canDrop(row.value, orientation, aEvent.dataTransfer);
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
|
@ -769,8 +769,8 @@
|
|||
<parameter name="aEvent"/>
|
||||
<parameter name="aFlavour"/>
|
||||
<parameter name="aDragSession"/>
|
||||
<body><![CDATA[
|
||||
if (!this.canDrop(aEvent, aDragSession))
|
||||
<body><![CDATA[
|
||||
if (!this.canDrop(aEvent, aDragSession, aEvent.dataTransfer))
|
||||
aEvent.dataTransfer.effectAllowed = "none";
|
||||
]]></body>
|
||||
</method>
|
||||
|
|
Загрузка…
Ссылка в новой задаче