rem: prefs = Components.classes['component: 
add: prefs = Components.classes['@mozilla.org/preferences;1']; 
context: function init_sidebar(name, uri, width) {  sidebar_name  = name;  sidebar_uri   = uri;  sidebar_width = width;  sidebar_pref  = 'sidebar.' + name;  // Open/close sidebar based on saved pref.  // This may be replaced by another system by hyatt.  prefs = Components.classes['component://netscape/preferences'];  if (prefs) {    prefs = prefs.getService();  }  if (prefs) {    prefs = prefs.QueryInterface(Components.interfaces.nsIPref);  }  if (prefs) {    // The sidebar is closed by default, so open it only if the    //    preference is set to true.    try {	    if (prefs.GetBoolPref(sidebar_pref + '.open')) {	      toggle_open_close();	    }    }    catch (ex) {	dump("failed to get sidebar_pref\n");    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0257791053c2b38e1dfaf2ee11afae973e82e394/contentframe.js/buggy/xpfe/browser/resources/content/contentframe.js