зеркало из https://github.com/mozilla/pjs.git
fix for bug #408862: "bookmark this frame" is broken
r=dietrich, a=schrep
This commit is contained in:
Родитель
4d0677b18f
Коммит
eb66f4575d
|
@ -1158,8 +1158,9 @@ nsContextMenu.prototype = {
|
|||
var description = PlacesUtils.getDescriptionFromDocument(doc);
|
||||
|
||||
var descAnno = { name: DESCRIPTION_ANNO, value: description };
|
||||
var txn = PlacesUtils.ptm.createItem(uri, PlacesUtils.bookmarksRootId, -1,
|
||||
title, null, [descAnno]);
|
||||
var txn = PlacesUtils.ptm.createItem(uri,
|
||||
PlacesUtils.bookmarksMenuFolderId,
|
||||
-1, title, null, [descAnno]);
|
||||
PlacesUtils.ptm.doTransaction(txn);
|
||||
itemId = PlacesUtils.getMostRecentBookmarkForURI(uri);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче