rem: var tooltipTitle = document.getElementById("btTitleText"); var tooltipUrl = document.getElementById("btUrlText"); if (title && title != url) { tooltipTitle.removeAttribute("hidden"); tooltipTitle.setAttribute("value", title); } else  { tooltipTitle.setAttribute("hidden", "true"); } if (url) { tooltipUrl.removeAttribute("hidden"); tooltipUrl.setAttribute("value", url); } else { tooltipUrl.setAttribute("hidden", "true"); } return true; 
add: var tooltipElement = document.getElementById("btTitleText"); tooltipElement.hidden = !title || (title == url); if (!tooltipElement.hidden) tooltipElement.setAttribute("value", title);  tooltipElement = document.getElementById("btUrlText"); tooltipElement.hidden = !url; if (!tooltipElement.hidden) tooltipElement.setAttribute("value", url);   return true; 
context:   fillInBTTooltip: function (tipElement)  {    var title = tipElement.label;    var url = tipElement.statusText;    if (!title && !url) {      // bail out early if there is nothing to show      return false;    }    var tooltipTitle = document.getElementById("btTitleText");    var tooltipUrl = document.getElementById("btUrlText");     if (title && title != url) {      tooltipTitle.removeAttribute("hidden");      tooltipTitle.setAttribute("value", title);    } else  {      tooltipTitle.setAttribute("hidden", "true");    }    if (url) {      tooltipUrl.removeAttribute("hidden");      tooltipUrl.setAttribute("value", url);    } else {      tooltipUrl.setAttribute("hidden", "true");    }    return true; // show tooltip  }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/aeed86925caf14b5dde8cee23d020017d009b412/bookmarksMenu.js/buggy/xpfe/components/bookmarks/resources/bookmarksMenu.js