rem: else if (aProperty.EqualsNode(this._fileIconArc)) return gRDF.GetLiteral("moz-icon: else if (aProperty.EqualsNode(this._fileExtensionArc)) return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase()); 
add: else if (aProperty.EqualsNode(this._fileIconArc)) { try { return gRDF.GetLiteral("moz-icon: } catch (e) { return gRDF.GetLiteral("moz-icon: } } else if (aProperty.EqualsNode(this._fileExtensionArc)) { try { return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase()); } catch (e) { } return gRDF.GetLiteral(""); } 
context:   GetTarget: function (aSource, aProperty, aTruthValue) {    if (this._isRootTypeResource(aSource)) {      var typeInfo = this.getMIMEInfo(aSource);      if (typeInfo) {        if (aProperty.EqualsNode(this._handleAutoArc)) {          var handler = this.GetTarget(aSource, this._handlerPropArc, true);          if (handler) {            handler = handler.QueryInterface(Components.interfaces.nsIRDFResource);            return gRDF.GetLiteral(!(this.getLiteralValue(handler.Value, "alwaysAsk") == "true"));          }        }        else if (aProperty.EqualsNode(this._fileTypeArc)) {          if (typeInfo.Description == "") {            // XXXben LOCALIZE!            return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase() + " file");          }          return gRDF.GetLiteral(typeInfo.Description);        }        else if (aProperty.EqualsNode(this._fileHandlerArc)) {          var handler = this.GetTarget(aSource, this._handlerPropArc, true);          if (handler) {            handler = handler.QueryInterface(Components.interfaces.nsIRDFResource);            if (this.getLiteralValue(handler.Value, "saveToDisk") == "true") {              // XXXben LOCALIZE!              return gRDF.GetLiteral("Save to Disk");            }            else if (this.getLiteralValue(handler.Value, "useSystemDefault") == "false") {              var extApp = this.GetTarget(handler, this._externalAppArc, true);              if (extApp) {                extApp = extApp.QueryInterface(Components.interfaces.nsIRDFResource);                // XXXben LOCALIZE!                var name = "Open with " + this.getLiteralValue(extApp.Value, "prettyName");                return gRDF.GetLiteral(name);              }            }          }                         // XXXben LOCALIZE!          return gRDF.GetLiteral("Open with " + typeInfo.defaultDescription);        }        else if (aProperty.EqualsNode(this._fileIconArc))          return gRDF.GetLiteral("moz-icon://goat." + typeInfo.primaryExtension + "?size=16");        else if (aProperty.EqualsNode(this._fileExtensionArc))          return gRDF.GetLiteral(typeInfo.primaryExtension.toUpperCase());        else if (aProperty.EqualsNode(this._fileExtensionsArc)) {          var extns = typeInfo.getFileExtensions();                    // Prevent duplicates.          var hash = { };          while (extns.hasMore())            hash[extns.getNext().toUpperCase()] = 0;                    var str = "";          for (var extn in hash)            str += extn + ",";          str = str.substring(0, str.length - 1);          return gRDF.GetLiteral(str);        }      }    }    return this._inner.GetTarget(aSource, aProperty, aTruthValue);  },      
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8366a147a61fec32a2aba9dece118e74834f00ab/helperApps.js/buggy/browser/components/downloads/content/helperApps.js