зеркало из https://github.com/mozilla/gecko-dev.git
Bug 415062 - Bookmark this Link - Cancel not working. patch from Michael Schonfeld <dev@schonfeld.org>, r=me.
This commit is contained in:
Родитель
4449a9734d
Коммит
14ea3a0e7a
|
@ -431,10 +431,10 @@ var PlacesCommandHook = {
|
|||
var linkURI = makeURI(aURL);
|
||||
var itemId = PlacesUtils.getMostRecentBookmarkForURI(linkURI);
|
||||
if (itemId == -1) {
|
||||
StarUI.beginBatch();
|
||||
var txn = PlacesUtils.ptm.createItem(linkURI, aParent, -1, aTitle);
|
||||
PlacesUtils.ptm.doTransaction(txn);
|
||||
itemId = PlacesUtils.getMostRecentBookmarkForURI(linkURI);
|
||||
StarUI.beginBatch();
|
||||
}
|
||||
|
||||
StarUI.showEditBookmarkPopup(itemId, getBrowser(), "overlap");
|
||||
|
|
Загрузка…
Ссылка в новой задаче