rem: dump('Getting invisible for:' + str + ' failed!\n'); 
context: function LoadAvailableCharSets(){  var available_charsets			= document.getElementById('available_charsets');   var available_charsets_treeroot	= document.getElementById('available_charsets_root');   var invisible						= new String();		if (availCharsetList) for (i = 0; i < availCharsetList.Count(); i++) {						atom = availCharsetList.GetElementAt(i);			atom = atom.QueryInterface(Components.interfaces.nsIAtom);			if (atom) {				str = atom.GetUnicode();				try {				  tit = ccm.GetCharsetTitle(atom);				} catch (ex) {				  //tit = str; //ignore charset detectors without a title				}								try {                                  				  visible = ccm.GetCharsetData(atom,'.notForBrowser');				  visible = false;				} catch (ex) {				  visible = true;				  dump('Getting invisible for:' + str + ' failed!\n');				}			} //atom			if (str) if (tit) {  				availCharsetDict[i] = new Array(2);				availCharsetDict[i][0]	= tit;					availCharsetDict[i][1]	= str;				availCharsetDict[i][2]	= visible;						} //str		} //for		availCharsetDict.sort();		if (availCharsetDict) for (i = 0; i < availCharsetDict.length; i++) {			if (availCharsetDict[i][2]) {				// Create a treerow for the new charset				var item = document.createElement('treeitem');				var row  = document.createElement('treerow');				var cell = document.createElement('treecell');  				tit = availCharsetDict[i][0];					str = availCharsetDict[i][1];					// Copy over the attributes				cell.setAttribute('value', tit);				cell.setAttribute('id', str); 				// Add it to the active charsets tree				item.appendChild(row);				row.appendChild(cell);				available_charsets_treeroot.appendChild(item);				// Select first item				if (i == 0) {				}				dump("*** Added Available Charset: " + tit + "\n");			} //if visible		} //for		//select first item in list box		//item = available_charsets_treeroot.firstChild;		//if (item) try {		//	available_charsets.selectItem(item);		//	available_charsets.ensureElementIsVisible(item);		//}				//catch (ex) {		//	dump("Not able to select first avail. charset.\n");		//}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d5988bd10083bfc5b57b74c6dbfed95ea03d41a2/pref-charset.js/buggy/suite/common/pref/pref-charset.js