Bug 419121 - Weave chokes on microsummaries (r=thunder)

This commit is contained in:
Dietrich Ayala 2008-05-22 11:41:05 -07:00
parent 2d0bcb7a9b
commit 26b658a127

View File

@ -369,6 +369,8 @@ BookmarksStore.prototype = {
if (command.data.type == "microsummary") {
this._log.debug(" \-> is a microsummary");
this._ans.setItemAnnotation(newId, "bookmarks/staticTitle",
command.data.staticTitle || "", 0, this._ans.EXPIRE_NEVER);
let genURI = Utils.makeURI(command.data.generatorURI);
try {
let micsum = this._ms.createMicrosummary(URI, genURI);
@ -578,6 +580,7 @@ BookmarksStore.prototype = {
item.type = "microsummary";
let micsum = this._ms.getMicrosummary(node.itemId);
item.generatorURI = micsum.generator.uri.spec; // breaks local generators
item.staticTitle = this._ans.getItemAnnotation(node.itemId, "bookmarks/staticTitle");
} else if (node.type == node.RESULT_TYPE_QUERY) {
item.type = "query";
item.title = node.title;