rem: var prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref("sidebar.customize.more_panels.url"); var temp = prefs.CopyCharPref("browser.chromeURL"); if (temp) browser_url = temp; } catch(ex) { debug("Unable to get prefs: "+ex); } 
add: var locale; try { var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); url = prefs.getCharPref("sidebar.customize.more_panels.url"); var temp = prefs.getCharPref("browser.chromeURL"); if (temp) browser_url = temp; } catch(ex) { debug("Unable to get prefs: "+ex); 
context: function BrowseMorePanels(){  var url = '';  var browser_url = "chrome://navigator/content/navigator.xul";  var prefs = Components.classes['@mozilla.org/preferences;1'];  if (prefs) {    prefs = prefs.getService();  }  if (prefs) {    prefs = prefs.QueryInterface(Components.interfaces.nsIPref);  }  if (prefs) {    var locale;    try {      url = prefs.CopyCharPref("sidebar.customize.more_panels.url");      var temp = prefs.CopyCharPref("browser.chromeURL");      if (temp) browser_url = temp;    } catch(ex) {      debug("Unable to get prefs: "+ex);    }  }  window.openDialog(browser_url, "_blank", "chrome,all,dialog=no", url);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/customize.js/buggy/xpfe/components/sidebar/resources/customize.js