[Webkit-unassigned] [Bug 36815] New: Plug-ins having upper case in mime type are failing to load
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 30 05:07:07 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=36815
Summary: Plug-ins having upper case in mime type are failing to
load
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: Linux
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: maharana.pankaj at gmail.com
CC: maharana.pankaj at gmail.com
WebKit can not load Mozilla Plug-ins having uppercase in their mime type
description string. For example a HelloWorld plug-in with mime type as
"application/sample-helloworld" is loaded successfully but when the mime type
string becomes "application/Sample-HelloWorld" it fails to load. Where as
Mozilla Firefox browser loads it properly.
With a little debugging I found that WebKit converts the mime type strings to
lower case explicitly, before searching for the plug-ins in plug-in
directories. Is there any special reason behind that? If not, I think, they
should not be converted to lower case.
The files and functions where they are converted to lower case are as below
1. In the file "WebCore/html/HTMLObjectElement.cpp", in the function
"void HTMLObjectElement::parseMappedAttribute(MappedAttribute *attr)"
the line "m_serviceType = val.lower();"
2. In the file "WebCore/plugins/PluginDatabase.cpp", in the function
"PluginPackage* PluginDatabase::pluginForMIMEType(const String& mimeType)"
the line "String key = mimeType.lower();"
3. In the file "WebCore/plugins/PluginDatabase.cpp", in the function
"void PluginDatabase::setPreferredPluginForMIMEType(const String& mimeType,
PluginPackage* plugin)"
the line "m_preferredPlugins.set(mimeType.lower(), plugin);"
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list