зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 81df156cb345 (bug 1250203) for test failures in mochitest-5 test_ext_bookmarks.html, browser-chrome browser_views_liveupdate.js, OS X xpcshell test_browserGlue_migrate.js and maybe more. r=backout on a CLOSED TREE
This commit is contained in:
Родитель
96b92febed
Коммит
c515d4ce79
|
@ -1407,33 +1407,6 @@ var BookmarkingUI = {
|
|||
}
|
||||
root.containerOpen = false;
|
||||
aHeaderItem.parentNode.insertBefore(fragment, aHeaderItem.nextSibling);
|
||||
|
||||
// Update the menu when a bookmark is being removed.
|
||||
// The native menubar on Mac doesn't support live update, so this won't
|
||||
// work there.
|
||||
let observer = {
|
||||
onItemAdded() {},
|
||||
onBeginUpdateBatch() {},
|
||||
onEndUpdateBatch() {},
|
||||
onItemRemoved() {
|
||||
removeObserver();
|
||||
BookmarkingUI._updateRecentBookmarks(aHeaderItem, extraCSSClass);
|
||||
},
|
||||
onItemChanged() {},
|
||||
onItemVisited() {},
|
||||
onItemMoved() {}
|
||||
};
|
||||
PlacesUtils.bookmarks.addObserver(observer, false);
|
||||
|
||||
let popup = aHeaderItem.parentNode;
|
||||
let removeObserver = function (event) {
|
||||
if (event && event.target != popup) {
|
||||
return;
|
||||
}
|
||||
PlacesUtils.bookmarks.removeObserver(observer);
|
||||
popup.removeEventListener("popuphidden", removeObserver);
|
||||
};
|
||||
popup.addEventListener("popuphidden", removeObserver);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче