Bug 418156 - Attempting to Drag and Drop in Bookmarks menu results in broken close windows button. patch by Bill Gianopoulos <bill@wg9s.com>, r=me.
git-svn-id: svn://10.0.0.236/trunk@246843 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
cfaf669e2b
commit
d0a1ad9038
@ -381,8 +381,7 @@
|
||||
label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
|
||||
ondragenter="PlacesMenuDNDController.onBookmarksMenuDragEnter(event);"
|
||||
ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDropHandler);"
|
||||
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);"
|
||||
ondragexit="PlacesMenuDNDController.onDragExit(event);">
|
||||
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);">
|
||||
<menupopup id="bookmarksMenuPopup"
|
||||
type="places" asyncinit="true"
|
||||
place="place:folder=2&expandQueries=1"
|
||||
|
||||
@ -817,21 +817,6 @@ var PlacesMenuDNDController = {
|
||||
this._springLoadDelay, [event]);
|
||||
},
|
||||
|
||||
/**
|
||||
* When the user drags out of the Bookmarks Menu or Toolbar, set a timer to
|
||||
* manually close the popup chain that was dragged out of. We need to do this
|
||||
* since the global popup dismissal listener does not handle multiple extant
|
||||
* popup chains well. See bug 332845 for more information.
|
||||
*/
|
||||
onDragExit: function PMDC_onDragExit(event) {
|
||||
// Ensure that we don't set multiple timers if there's one already set.
|
||||
if ("closeTime" in this._timers)
|
||||
return;
|
||||
|
||||
this._setDragTimer("closeTime", this._closePopups,
|
||||
this._springLoadDelay, [event.target]);
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates a timer that will fire during a drag and drop operation.
|
||||
* @param id
|
||||
|
||||
@ -380,7 +380,6 @@
|
||||
onclick="BookmarksEventHandler.onClick(event);"
|
||||
oncommand="BookmarksEventHandler.onCommand(event);"
|
||||
onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
|
||||
ondragexit="PlacesMenuDNDController.onDragExit(event);"
|
||||
tooltip="btTooltip"/>
|
||||
</toolbaritem>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user