Changeset 23529 in webkit
- Timestamp:
- Jun 14, 2007 10:21:04 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r23528 r23529 1 2007-06-14 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Geoff. 4 5 <rdar://problem/5211677> 6 -[WebPreferences setJavaEnabled:] only disables java inside <applet>, not <object> 7 8 * loader/FrameLoader.cpp: 9 (WebCore::FrameLoader::requestObject): 10 If the object is a Java MIME type and Java is disabled, don't load the plug-in. 11 12 * platform/MimeTypeRegistry.cpp: 13 (WebCore::MimeTypeRegistry::isJavaAppletMIMEType): 14 Clean this up and add another applet MIME type. 15 1 16 2007-06-14 George Staikos <staikos@kde.org> 2 17 -
trunk/WebCore/loader/FrameLoader.cpp
r21975 r23529 63 63 #include "Logging.h" 64 64 #include "MainResourceLoader.h" 65 #include "MimeTypeRegistry.h" 65 66 #include "Page.h" 66 67 #include "PageCache.h" … … 1444 1445 if (shouldUsePlugin(completedURL, mimeType, renderer->hasFallbackContent(), useFallback)) { 1445 1446 Settings* settings = m_frame->settings(); 1446 if (!settings || !settings->arePluginsEnabled()) 1447 if (!settings || !settings->arePluginsEnabled() || 1448 (!settings->isJavaEnabled() && MimeTypeRegistry::isJavaAppletMIMEType(mimeType))) 1447 1449 return false; 1448 1450 return loadPlugin(renderer, completedURL, mimeType, paramNames, paramValues, useFallback); -
trunk/WebCore/platform/MimeTypeRegistry.cpp
r21559 r23529 175 175 { 176 176 // Since this set is very limited and is likely to remain so we won't bother with the overhead 177 // of using a Hashset.178 // Note - "application/x-java-applet"may be followed by any number of specific versions of the JVM,177 // of using a hash set. 178 // Any of the MIME types below may be followed by any number of specific versions of the JVM, 179 179 // which is why we use startsWith() 180 181 String lower = mimeType.lower();182 return lower.startsWith("application/x-java-applet") || lower == "application/x-java-vm";180 return mimeType.startsWith("application/x-java-applet", false) 181 || mimeType.startsWith("application/x-java-bean", false) 182 || mimeType.startsWith("application/x-java-vm", false); 183 183 } 184 184
Note: See TracChangeset
for help on using the changeset viewer.