Reviewed by Darin Adler.
[WebKit-https.git] / WebKit / Plugins / WebPluginDatabase.m
index 2ae75e058395df15b2c47cbf9de0f225455ea792..deb940e12f3b986f855722d97430c1fc2972273f 100644 (file)
@@ -252,6 +252,8 @@ static NSArray *additionalWebPlugInPaths;
     NSEnumerator *MIMEEnumerator = [MIMETypes objectEnumerator];
     NSString *MIMEType;
     while ((MIMEType = [MIMEEnumerator nextObject]) != nil) {
+        [registeredMIMETypes addObject:MIMEType];
+
         if ([WebView canShowMIMETypeAsHTML:MIMEType])
             // Don't allow plug-ins to override our core HTML types.
             continue;
@@ -265,7 +267,6 @@ static NSArray *additionalWebPlugInPaths;
         
         if (self == database)
             [WebView registerViewClass:[WebHTMLView class] representationClass:[WebHTMLRepresentation class] forMIMEType:MIMEType];
-        [registeredMIMETypes addObject:MIMEType];
     }
     [MIMETypes release];