From 85b6f827a9a7c680328140477e6deeaaa6fcc573 Mon Sep 17 00:00:00 2001 From: "sspitzer@mozilla.org" Date: Wed, 30 May 2007 09:17:34 -0700 Subject: [PATCH] fix for bug #379591: places toolbar.xml should just change existing button itemChanged()r=mano --- browser/base/content/browser-places.js | 2 +- browser/components/places/content/toolbar.xml | 70 +++++++++++++++++-- 2 files changed, 64 insertions(+), 8 deletions(-) diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js index bc407a7c2d9b..49b27f08aab0 100644 --- a/browser/base/content/browser-places.js +++ b/browser/base/content/browser-places.js @@ -339,7 +339,7 @@ var BookmarksEventHandler = { if (aTipElement.localName != "toolbarbutton") return false; - var url = aTipElement.getAttribute("url"); + var url = aTipElement.node.uri; if (!url) return false; diff --git a/browser/components/places/content/toolbar.xml b/browser/components/places/content/toolbar.xml index 30a7ab05c834..7ace17665e69 100755 --- a/browser/components/places/content/toolbar.xml +++ b/browser/components/places/content/toolbar.xml @@ -233,7 +233,6 @@ var button = null; if (PlacesUtils.nodeIsURI(child)) { button = document.createElementNS(XULNS, "toolbarbutton"); - button.setAttribute("url", child.uri); if (PlacesUtils.nodeIsBookmark(child)) { // If the item has a generated title, use that instead. @@ -473,7 +472,7 @@ // Nothing ]]> - +