Bug 575477 - Error in nsIAutoCompletePopup::invalidate [r=vingtetun]
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -250,17 +250,17 @@
}
item._empty = false;
// Assign the values
let type = controller.getStyleAt(i);
let title = controller.getCommentAt(i);
let tags = '';
- if (type == "tag")
+ if (title && type == "tag")
[, title, tags] = title.match(/^(.+) \u2013 (.+)$/);
item.setAttribute("tags", tags);
let url = controller.getValueAt(i);
item.setAttribute("value", title || url);
item.setAttribute("url", url);
let isBookmark = ((type == "bookmark") || (type == "tag"));