зеркало из https://github.com/mozilla/gecko-dev.git
Bug 407872: Deleting items from 'most visited' smart bookmark folders on the toolbar doesn't work (using the context menu), patch by Marco Bonardo <mak77@supereva.it>, r=mano, a=beltzner
This commit is contained in:
Родитель
96b8f79320
Коммит
3d4a1de909
|
@ -866,6 +866,15 @@ PlacesController.prototype = {
|
|||
transactions.push(PlacesUIUtils.ptm.untagURI(uri, [tagItemId]));
|
||||
continue;
|
||||
}
|
||||
else if (PlacesUtils.nodeIsQuery(node.parent) &&
|
||||
asQuery(node.parent).queryOptions.queryType ==
|
||||
Ci.nsINavHistoryQueryOptions.QUERY_TYPE_HISTORY &&
|
||||
node.uri) {
|
||||
// remove page from history, history deletes are not undoable
|
||||
var bhist = PlacesUtils.history.QueryInterface(Ci.nsIBrowserHistory);
|
||||
bhist.removePage(PlacesUtils._uri(node.uri));
|
||||
continue;
|
||||
}
|
||||
|
||||
transactions.push(PlacesUIUtils.ptm.removeItem(node.itemId));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче