rem: observe: function(subject, topic, state) { if (topic != "dl-start") return; var open = gPrefService.getBoolPref("browser.download.openSidebar"); if (open && document.getElementById("sidebar-box").hidden) toggleSidebar("viewDownloadsSidebar"); } 
add: observe: function(aPrefBranch, aTopic, aPrefName) { try { var rdf = Components. classes["@mozilla.org/rdf/rdf-service;1"]. getService(Components.interfaces.nsIRDFService); var ds = rdf.GetDataSource("rdf:internetsearch"); var defaultEngine = aPrefBranch.getCharPref(aPrefName); var res = rdf.GetResource(defaultEngine);   const kNC_Name = rdf.GetResource( "http: var engineName = ds.GetTarget(res, kNC_Name, true); if (engineName) { this.name = engineName.QueryInterface( Components.interfaces.nsIRDFLiteral).Value; }   const kNC_Icon = rdf.GetResource( "http: var iconURL = ds.GetTarget(res, kNC_Icon, true); if (iconURL) { this.icon = iconURL.QueryInterface( Components.interfaces.nsIRDFLiteral).Value; } } catch (ex) { } } 
context:   observe: function(subject, topic, state) {      if (topic != "dl-start") return;    var open = gPrefService.getBoolPref("browser.download.openSidebar");    if (open && document.getElementById("sidebar-box").hidden)      toggleSidebar("viewDownloadsSidebar");  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d4254ca1baf52bfb1ad4d53669ee206c692df54d/browser.js/clean/browser/base/content/browser.js