rem:    var dialogTitle = bundle.GetStringFromName("switchskins"); var msg = bundle.GetStringFromName("switchskinstitle"); if (!commonDialogs.Confirm(window, msg, dialogTitle)) return false;  
context: function selectSkin()  {    var tree = document.getElementById( "skinsTree" );        var commonDialogs = nsJSComponentManager.getService("component://netscape/appshell/commonDialogs",                                                         "nsICommonDialogs");    // XXX XXX BAD BAD BAD BAD !! XXX XXX    // we need to come up with a real solution to the losing content in editor problem    // rather than just hacking around it like this.     var dialogTitle = bundle.GetStringFromName("switchskins");    var msg = bundle.GetStringFromName("switchskinstitle");    if (!commonDialogs.Confirm(window, msg, dialogTitle))       return false;        var selectedSkinItem = tree.selectedItems[0];    var skinName = selectedSkinItem.getAttribute( "name" );    chromeRegistry.selectSkin( skinName, DEBUG_USE_PROFILE );     chromeRegistry.refreshSkins();  }  
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/59a3e71d489a1b0279b07d54900dec7c789e7502/pref-themes.js/buggy/xpfe/components/prefwindow/resources/content/pref-themes.js