Bug 977862 - dragging items onto an empty toolbar shows no drag outline in Australis' Customize Mode, r=mconley
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Sun, 09 Mar 2014 17:57:13 +0000
changeset 173116 1e331682951f1f77bfd4ee73a095809538a28848
parent 173004 8d1664e48b5967e72bd79b9a38e5ac15af6e263d
child 173117 569c2bd2234e2e7d71813d7f7235b1c7df596e3b
push id26391
push usercbook@mozilla.com
push dateWed, 12 Mar 2014 11:20:34 +0000
treeherdermozilla-central@a56837cfc67c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs977862
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 977862 - dragging items onto an empty toolbar shows no drag outline in Australis' Customize Mode, r=mconley
browser/components/customizableui/src/CustomizeMode.jsm
--- a/browser/components/customizableui/src/CustomizeMode.jsm
+++ b/browser/components/customizableui/src/CustomizeMode.jsm
@@ -1339,16 +1339,18 @@ CustomizeMode.prototype = {
 
     if (this._dragOverItem && dragOverItem != this._dragOverItem) {
       this._cancelDragActive(this._dragOverItem, dragOverItem);
     }
 
     if (dragOverItem != this._dragOverItem || dragValue != dragOverItem.getAttribute("dragover")) {
       if (dragOverItem != targetArea.customizationTarget) {
         this._setDragActive(dragOverItem, dragValue, draggedItemId, targetIsToolbar);
+      } else if (targetIsToolbar) {
+        this._updateToolbarCustomizationOutline(this.window, targetArea);
       }
       this._dragOverItem = dragOverItem;
     }
 
     aEvent.preventDefault();
     aEvent.stopPropagation();
   },