From c21c31ffd428c1be010b96ea8bc47728ea5fe925 Mon Sep 17 00:00:00 2001 From: Avijit Gupta <526avijitgupta@gmail.com> Date: Tue, 20 Jan 2015 18:26:33 +0530 Subject: [PATCH] Bug 1112618 - Use an empty string instead of null for the label attribute of null-titled bookmarks. r=mak --- browser/components/places/content/browserPlacesViews.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/components/places/content/browserPlacesViews.js b/browser/components/places/content/browserPlacesViews.js index 38cbd8510284..38156dcbab02 100644 --- a/browser/components/places/content/browserPlacesViews.js +++ b/browser/components/places/content/browserPlacesViews.js @@ -1038,7 +1038,7 @@ PlacesToolbar.prototype = { else { button = document.createElement("toolbarbutton"); button.className = "bookmark-item"; - button.setAttribute("label", aChild.title); + button.setAttribute("label", aChild.title || ""); let icon = aChild.icon; if (icon) button.setAttribute("image", @@ -1866,7 +1866,7 @@ PlacesPanelMenuView.prototype = { button.className = "bookmark-item"; if (typeof this.options.extraClasses.entry == "string") button.classList.add(this.options.extraClasses.entry); - button.setAttribute("label", aChild.title); + button.setAttribute("label", aChild.title || ""); let icon = aChild.icon; if (icon) button.setAttribute("image",