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 183738 5eb91b9f89ec6518f59d33f3f688ba4820487ba6
parent 183737 04e63b14de25d2a171ee7b62ae16e3e0c7a5a30e
child 183739 c1bbbe2e1309bc8d67b4896bb3ab1a676aba6db7
push id3465
push usergijskruitbosch@gmail.com
push dateMon, 14 Apr 2014 12:21:48 +0000
treeherdermozilla-beta@d20804c31f61 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak, sylvestre
bugs977572
milestone29.0
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);
         }