rem: var str = Components.classes[ "@mozilla.org/supports-wstring;1" ] .createInstance(Components.interfaces.nsISupportsWString); 
add: var str = Components.classes[ tzIsupports ].createInstance(tzIStr); 
context: function writePref( prefType, prefString, prefValue ){  var mvPreference = Components.classes[ "@mozilla.org/preferences;1" ]                     .getService( Components.interfaces.nsIPrefBranch );  try {    switch ( prefType ) {      case "bool":        {          mvPreference.setBoolPref( prefString, prefValue );          break;        }      case "int":        {          mvPreference.setIntPref( prefString, prefValue );          break;        }      case "string":        {          var str = Components.classes[ "@mozilla.org/supports-wstring;1" ]                                        .createInstance(Components.interfaces.nsISupportsWString);          str.data = prefValue;          mvPreference.setComplexValue( prefString, Components.interfaces.nsISupportsWString, str );          break;        }      case "url":        {          mvPreference.setComplexValue( prefIdentifier, Components.interfaces.nsIPrefLocalizedString,                                         prefValue );          break;        }      case "char":        {          mvPreference.setCharPref( prefString, prefValue );          break;        }      default:        {          dump( 'writePref: Unsupported pref type "'+prefType+'" used\n' );        }    }  }  catch ( ex ) { // die silently     dump("writePref:"+ex+"\n");  }}
meta: 1647	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1647/e536ad1fc410e0198e79ebb7594c6d2cd9625469/utility.js/clean/src/tagzilla/content/utility.js