rem:  #if PLUGIN_TYPE_MANAGER  var plugins = { };  var catman = Components.classes["@mozilla.org/categorymanager;1"].getService(Components.interfaces.nsICategoryManager); var types = catman.enumerateCategory("Gecko-Content-Viewers"); while (types.hasMoreElements()) { var currType = types.getNext().QueryInterface(Components.interfaces.nsISupportsCString).data; var contractid = catman.getCategoryEntry("Gecko-Content-Viewers", currType); if (contractid == "@mozilla.org/content/plugin/document-loader-factory;1") plugins[currType] = "@mozilla.org/content/plugin/document-loader-factory;1"; } #endif 
context: function HelperApps(){  if (!gRDF)     gRDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);    const mimeTypes = "UMimTyp";  var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties);    var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile);  var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);  var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler);  this._inner = gRDF.GetDataSourceBlocking(fileHandler.getURLSpecFromFile(file));  this._inner.AddObserver(this);  this._fileTypeArc       = gRDF.GetResource(NC_URI("FileType"));  this._fileHandlerArc    = gRDF.GetResource(NC_URI("FileHandler"));  this._fileIconArc       = gRDF.GetResource(NC_URI("FileIcon"));  this._fileExtensionArc  = gRDF.GetResource(NC_URI("FileExtension"));  this._fileExtensionsArc = gRDF.GetResource(NC_URI("FileExtensions"));  this._handleAutoArc     = gRDF.GetResource(NC_URI("FileHandleAuto"));  this._valueArc          = gRDF.GetResource(NC_URI("value"));  this._handlerPropArc    = gRDF.GetResource(NC_URI("handlerProp"));  this._externalAppArc    = gRDF.GetResource(NC_URI("externalApplication"));  #if PLUGIN_TYPE_MANAGER  // Initialize Plugins  var plugins = { };    var catman = Components.classes["@mozilla.org/categorymanager;1"].getService(Components.interfaces.nsICategoryManager);  var types = catman.enumerateCategory("Gecko-Content-Viewers");  while (types.hasMoreElements()) {    var currType = types.getNext().QueryInterface(Components.interfaces.nsISupportsCString).data;    var contractid = catman.getCategoryEntry("Gecko-Content-Viewers", currType);    if (contractid == "@mozilla.org/content/plugin/document-loader-factory;1")       plugins[currType] = "@mozilla.org/content/plugin/document-loader-factory;1";  }#endif}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/82c6679d657ba14e45a455638dc0b4c7cd81d97f/helperApps.js/buggy/browser/components/downloads/content/helperApps.js