зеркало из https://github.com/mozilla/gecko-dev.git
Bug 381255 ? Drag and Drop to Bookmarks result in an Assertion failed (for mak77@supereva.it, r=mano)
This commit is contained in:
Родитель
f374e39dcd
Коммит
7e9ef3a40f
|
@ -753,12 +753,8 @@ 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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче