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:
Sebastian Hengst 2016-04-08 18:42:07 +02:00
Родитель 96b92febed
Коммит c515d4ce79
1 изменённых файлов: 0 добавлений и 27 удалений

Просмотреть файл

@ -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);
},
/**