Bug 977572 - catch drag end and drop events from bookmarks drag handler so we can clean up, r=mak, a=sylvestre
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 10 Apr 2014 17:14:44 +0100
changeset 191765 3617c980e9e168273f9c805f4de1a8cc0b939d7e
parent 191764 0708916df1f5d0936f1e01a82ca3ed2b49088d9f
child 191766 4eac2e379747cbeaa47fa0d7de1f4e1e10dbeef9
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak, sylvestre
bugs977572
milestone30.0a2
Bug 977572 - catch drag end and drop events from bookmarks drag handler so we can clean up, r=mak, a=sylvestre
browser/components/places/content/menu.xml
--- a/browser/components/places/content/menu.xml
+++ b/browser/components/places/content/menu.xml
@@ -451,17 +451,17 @@
 
       <handler event="dragexit"><![CDATA[
         PlacesControllerDragHelper.currentDropTarget = null;
         this.removeAttribute("dragover");
 
         // If we have not moved to a valid new target clear the drop indicator
         // this happens when moving out of the popup.
         let target = event.relatedTarget;
-        if (!target)
+        if (!target || !this.contains(target))
           this._indicatorBar.hidden = true;
 
         // Close any folder being hovered over
         if (this._overFolder.elt) {
           this._overFolder.closeTimer = this._overFolder
                                             .setTimer(this._overFolder.hoverTime);
         }