Bug 400222 - 'Application' content type in Applications prefpane has problems. r=gavin, ui-r=beltzner, a=blocking-firefox3+

This commit is contained in:
florian@queze.net 2008-01-14 18:32:28 -08:00
Родитель 2bb4265951
Коммит 1ff878cb95
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1323,6 +1323,13 @@ var gApplicationsPane = {
}
// Create a menu item for selecting a local application.
#ifdef XP_WIN
// On Windows, selecting an application to open another application
// would be meaningless so we special case executables.
var executableType = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService)
.getTypeFromExtension("exe");
if (handlerInfo.type != executableType)
#endif
{
let menuItem = document.createElementNS(kXULNS, "menuitem");
menuItem.setAttribute("oncommand", "gApplicationsPane.chooseApp(event)");