Bug 381255 ? Drag and Drop to Bookmarks result in an Assertion failed (for mak77@supereva.it, r=mano)
git-svn-id: svn://10.0.0.236/trunk@247317 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9baed10bf6
commit
c8fd752905
@ -753,13 +753,9 @@ var BookmarksMenuDropHandler = {
|
||||
* @returns a FlavourSet object per nsDragAndDrop parlance.
|
||||
*/
|
||||
getSupportedFlavours: function BMDH_getSupportedFlavours() {
|
||||
var flavorSet = new FlavourSet();
|
||||
var view = document.getElementById("bookmarksMenuPopup");
|
||||
var types = PlacesUtils.GENERIC_VIEW_DROP_TYPES
|
||||
for (var i = 0; i < types.length; ++i)
|
||||
flavorSet.appendFlavour(types[i]);
|
||||
return flavorSet;
|
||||
},
|
||||
return view.getSupportedFlavours();
|
||||
},
|
||||
|
||||
/**
|
||||
* Determine whether or not the user can drop on the Bookmarks Menu.
|
||||
@ -784,11 +780,9 @@ var BookmarksMenuDropHandler = {
|
||||
* The active DragSession
|
||||
*/
|
||||
onDrop: function BMDH_onDrop(event, data, session) {
|
||||
var view = document.getElementById("bookmarksMenuPopup");
|
||||
// Put the item at the end of bookmark menu
|
||||
var ip = new InsertionPoint(PlacesUtils.bookmarksMenuFolderId, -1);
|
||||
PlacesControllerDragHelper.onDrop(ip);
|
||||
view._rebuild();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user