rem: feedButton.removeAttribute("feeds"); feedButton.removeAttribute("feed"); feedButton.setAttribute("tooltiptext", gNavigatorBundle.getString("feedNoFeeds")); 
add: if (feedButton) { feedButton.removeAttribute("feeds"); feedButton.removeAttribute("feed"); feedButton.setAttribute("tooltiptext", gNavigatorBundle.getString("feedNoFeeds")); } 
context:   updateFeeds: function() {    var feedButton = document.getElementById("feed-button");    if (!feedButton)      return;    if (!this._feedMenuitem)      this._feedMenuitem = document.getElementById("subscribeToPageMenuitem");    if (!this._feedMenupopup)      this._feedMenupopup = document.getElementById("subscribeToPageMenupopup");    var feeds = gBrowser.mCurrentBrowser.feeds;    if (!feeds || feeds.length == 0) {      feedButton.removeAttribute("feeds");      feedButton.removeAttribute("feed");      feedButton.setAttribute("tooltiptext",                               gNavigatorBundle.getString("feedNoFeeds"));      this._feedMenuitem.setAttribute("disabled", "true");      this._feedMenupopup.setAttribute("hidden", "true");      this._feedMenuitem.removeAttribute("hidden");    } else {      feedButton.setAttribute("feeds", "true");      feedButton.setAttribute("tooltiptext", #ifdef MOZ_FEEDS                              gNavigatorBundle.getString("feedHasFeedsNew"));#else                              gNavigatorBundle.getString("feedHasFeeds"));#endif      // check for dupes before we pick which UI to expose      feeds = this.harvestFeeds(feeds);            if (feeds.length > 1) {        this._feedMenuitem.setAttribute("hidden", "true");        this._feedMenupopup.removeAttribute("hidden");        feedButton.removeAttribute("feed");      } else {        feedButton.setAttribute("feed", feeds[0].href);        this._feedMenuitem.setAttribute("feed", feeds[0].href);        this._feedMenuitem.removeAttribute("disabled");        this._feedMenuitem.removeAttribute("hidden");        this._feedMenupopup.setAttribute("hidden", "true");      }    }  }, 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/14e27cc1c132085f87010c9c83066b84454f544f/browser.js/buggy/browser/base/content/browser.js