mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
5d250491a3
commit
f8aee4fbdb
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user