Bug 416466 - "Extra useless option in file handling options" [r=myk]

This commit is contained in:
Michael Ventnor 2008-12-12 15:49:52 -08:00
parent 2f1fb16743
commit fa63a9bd31

View File

@ -597,7 +597,13 @@ HandlerOverride.prototype = {
set appDisplayName(aDisplayName)
{
this.changeMIMEStuff(APP_URI(this.mimeType), "prettyName", aDisplayName);
if (aDisplayName)
this.changeMIMEStuff(APP_URI(this.mimeType), "prettyName", aDisplayName);
else {
var currentValue = this.getLiteralForContentType(APP_URI(this.mimeType), "prettyName");
this.unassertMIMEStuff(APP_URI(this.mimeType), "prettyName", currentValue);
}
return aDisplayName;
},
@ -608,7 +614,13 @@ HandlerOverride.prototype = {
set appPath(aAppPath)
{
this.changeMIMEStuff(APP_URI(this.mimeType), "path", aAppPath);
if (aAppPath)
this.changeMIMEStuff(APP_URI(this.mimeType), "path", aAppPath);
else {
var currentValue = this.getLiteralForContentType(APP_URI(this.mimeType), "path");
this.unassertMIMEStuff(APP_URI(this.mimeType), "path", currentValue);
}
return aAppPath;
},