зеркало из https://github.com/mozilla/gecko-dev.git
Bug 225921: Can't copy/paste bookmarks from personal toolbar
Bug 210910: Right-clicking a file within a bookmarks folder in the bookmarks menu or toolbar makes that folder inaccessible I added the bm command controller to the menubar bookmark menu, to deal with hidden bookmarks toolbar.
This commit is contained in:
Родитель
8d563e16b4
Коммит
fe1be84a39
|
@ -388,9 +388,11 @@ function delayedStartup()
|
|||
bt.ref = btf;
|
||||
document.getElementById("bookmarks-chevron").ref = btf;
|
||||
bt.database.AddObserver(BookmarksToolbarRDFObserver);
|
||||
bt.controllers.appendController(BookmarksMenuController);
|
||||
}
|
||||
var bm = document.getElementById("bookmarks-menu");
|
||||
bm.controllers.appendController(BookmarksMenuController);
|
||||
window.addEventListener("resize", BookmarksToolbar.resizeFunc, false);
|
||||
controllers.appendController(BookmarksMenuController);
|
||||
|
||||
// called when we go into full screen, even if it is
|
||||
// initiated by a web page script
|
||||
|
|
|
@ -123,8 +123,9 @@ var BookmarksMenu = {
|
|||
var target = document.popupNode;
|
||||
if (!this.isBTBookmark(target.id))
|
||||
return false;
|
||||
var bt = document.getElementById("bookmarks-ptf");
|
||||
bt.focus(); // buttons in the bt have -moz-user-focus: ignore
|
||||
|
||||
target.focus(); // buttons in the pt have -moz-user-focus: ignore
|
||||
this._selection = this.getBTSelection(target);
|
||||
this._orientation = this.getBTOrientation(aEvent, target);
|
||||
this._target = this.getBTTarget(target, this._orientation);
|
||||
|
@ -142,6 +143,9 @@ var BookmarksMenu = {
|
|||
content.focus()
|
||||
BookmarksMenuDNDObserver.onDragRemoveFeedBack(document.popupNode); // needed on cancel
|
||||
aEvent.target.removeEventListener("mousemove", BookmarksMenuController.onMouseMove, false)
|
||||
// XXXpch: see bug 210910, it should be done properly in the backend
|
||||
BookmarksMenuDNDObserver.mCurrentDragOverTarget = null;
|
||||
BookmarksMenuDNDObserver.onDragCloseTarget();
|
||||
},
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -381,7 +385,6 @@ var BookmarksMenuController = {
|
|||
|
||||
isCommandEnabled: function (aCommand)
|
||||
{
|
||||
// warning: this is not the function called in BookmarksController.onCommandUpdate
|
||||
var selection = BookmarksMenu._selection;
|
||||
var target = BookmarksMenu._target;
|
||||
if (selection)
|
||||
|
@ -399,9 +402,6 @@ var BookmarksMenuController = {
|
|||
BookmarksMenu.expandBTFolder();
|
||||
break;
|
||||
default:
|
||||
// XXXBlake HACK for bug 210910 -- To be removed after 0.7
|
||||
BookmarksMenuDNDObserver.mCurrentDragOverTarget = null;
|
||||
BookmarksMenuDNDObserver.onDragCloseTarget();
|
||||
BookmarksController.doCommand(aCommand, selection, target);
|
||||
}
|
||||
},
|
||||
|
@ -586,7 +586,7 @@ var BookmarksMenuDNDObserver = {
|
|||
this._observers = [
|
||||
document.getElementById("bookmarks-ptf"),
|
||||
document.getElementById("bookmarks-menu").parentNode,
|
||||
document.getElementById("overflow-padder")
|
||||
document.getElementById("bookmarks-chevron").parentNode
|
||||
]
|
||||
}
|
||||
return this._observers;
|
||||
|
|
Загрузка…
Ссылка в новой задаче