bug 397690: followup patch for complete fix to make handler apps display as full application name rather than executable name; r=gavin, a=mconnor

git-svn-id: svn://10.0.0.236/trunk@236957 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
myk%mozilla.org
2007-09-30 20:12:51 +00:00
parent 22af368774
commit a33fe8e6d4

View File

@@ -1005,7 +1005,11 @@ var gApplicationsPane = {
return this._prefsBundle.getString("saveFile");
case Ci.nsIHandlerInfo.useHelperApp:
return getDisplayNameForFile(aHandlerInfo.preferredApplicationHandler.executable);
var preferredApp = aHandlerInfo.preferredApplicationHandler;
if (preferredApp instanceof Ci.nsILocalHandlerApp)
return getDisplayNameForFile(preferredApp.executable);
else
return preferredApp.name;
case Ci.nsIHandlerInfo.handleInternally:
// For the feed type, handleInternally means live bookmarks.