mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 416466 - "Extra useless option in file handling options" [r=myk]
This commit is contained in:
parent
2f1fb16743
commit
fa63a9bd31
@ -597,7 +597,13 @@ HandlerOverride.prototype = {
|
||||
|
||||
set appDisplayName(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)
|
||||
{
|
||||
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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user