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:
Neil Deakin 2009-07-17 14:09:10 -04:00
Родитель 39f2df2a25
Коммит 16538c1ff6
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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>