<rdar://problem/
4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
No layout test for now because Java doesn't work in DumpRenderTree.
* Plugins/WebPluginDatabase.m:
(-[WebPluginDatabase refresh]):
Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
(we were always rendering fallback content, if any, for Java applets).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16101
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-08-29 Tim Omernick <timo@apple.com>
+
+ Reviewed by Darin Adler.
+
+ <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
+
+ No layout test for now because Java doesn't work in DumpRenderTree.
+
+ * Plugins/WebPluginDatabase.m:
+ (-[WebPluginDatabase refresh]):
+ Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
+ MIME type. This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
+ (we were always rendering fallback content, if any, for Java applets).
+
2006-08-29 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Tim H.
2006-08-29 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Tim H.
NSEnumerator *MIMEEnumerator = [MIMETypes objectEnumerator];
NSString *MIMEType;
while ((MIMEType = [MIMEEnumerator nextObject]) != nil) {
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;
if ([WebView canShowMIMETypeAsHTML:MIMEType])
// Don't allow plug-ins to override our core HTML types.
continue;
if (self == database)
[WebView registerViewClass:[WebHTMLView class] representationClass:[WebHTMLRepresentation class] forMIMEType:MIMEType];
if (self == database)
[WebView registerViewClass:[WebHTMLView class] representationClass:[WebHTMLRepresentation class] forMIMEType:MIMEType];
- [registeredMIMETypes addObject:MIMEType];