Fix for 239160. updated the list of extensions which are considered executable to match that of what Microsoft does for IE. r=darin, sr=bienvenu@nventure.com

git-svn-id: svn://10.0.0.236/trunk@156221 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%meer.net
2004-05-11 03:36:01 +00:00
parent 5e7e772f3a
commit b94b908037

View File

@@ -1868,19 +1868,52 @@ nsLocalFile::IsExecutable(PRBool *_retval)
}
}
// Search for any of the set of executable extensions.
const char * const executableExts[] = { ".exe",
".bat",
".com",
".pif",
".cmd",
".js",
".vbs",
".lnk",
".reg",
".wsf",
".hta",
".scr",
0 };
const char * const executableExts[] = {
".ad",
".adp",
".asp",
".bas",
".bat",
".chm",
".cmd",
".com",
".cpl",
".crt",
".exe",
".hlp",
".hta",
".inf",
".ins",
".isp",
".js",
".jse",
".lnk",
".mdb",
".mde",
".msc",
".msi",
".msp",
".mst",
".pcd",
".pif",
".reg",
".scr",
".sct",
".shb",
".shs",
".url",
".vb",
".vbe",
".vbs",
".vsd",
".vss",
".vst",
".vsw",
".ws",
".wsc",
".wsf",
".wsh",
0 };
for ( int i = 0; executableExts[i]; i++ ) {
if ( ::strcmp( executableExts[i], ext ) == 0 ) {
// Found a match. Set result and quit.