Commit 418f83ec authored by darin's avatar darin

Reviewed by Richard and Don.

	- fixed 3132192 -- HOMEPAGE: Quicktime plug in with AVI content brings Plug-ins not found panel

        * Plugins.subproj/WebPluginDatabase.m: (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
	Lower-case the key before searching for it. This is needed for both MIME types and extensions,
	since we want case insensitive comparison in both cases.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a02ae6d8
2002-12-24 Darin Adler <darin@apple.com>
Reviewed by Richard and Don.
- fixed 3132192 -- HOMEPAGE: Quicktime plug in with AVI content brings Plug-ins not found panel
* Plugins.subproj/WebPluginDatabase.m: (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
Lower-case the key before searching for it. This is needed for both MIME types and extensions,
since we want case insensitive comparison in both cases.
=== Alexander-45 ===
2002-12-23 Ken Kocienda <kocienda@apple.com>
......
......@@ -32,10 +32,11 @@ - (WebBasePluginPackage *)pluginForKey:(NSString *)key withEnumeratorSelector:(S
{
WebBasePluginPackage *plugin, *CFMPlugin=nil, *machoPlugin=nil, *webPlugin=nil;
uint i;
NSString *lowercaseKey = [key lowercaseString];
for(i=0; i<[plugins count]; i++){
plugin = [plugins objectAtIndex:i];
if([[[plugin performSelector:enumeratorSelector] allObjects] containsObject:key]){
if([[[plugin performSelector:enumeratorSelector] allObjects] containsObject:lowercaseKey]){
if([plugin isKindOfClass:[WebPluginPackage class]]){
if(webPlugin == nil){
webPlugin = plugin;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment