Bug 415062 - Bookmark this Link - Cancel not working. patch from Michael Schonfeld <dev@schonfeld.org>, r=me.
git-svn-id: svn://10.0.0.236/trunk@245612 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user