Changeset 70237 in webkit


Ignore:
Timestamp:
Oct 21, 2010 8:51:05 AM (14 years ago)
Author:
kbalazs@webkit.org
Message:

2010-10-21 Balazs Kelemen <kbalazs@webkit.org>

Reviewed by Andreas Kling.

[Qt] PluginInfoStore does not set up mime types for plugins
https://bugs.webkit.org/show_bug.cgi?id=48063

  • UIProcess/Plugins/qt/PluginInfoStoreQt.cpp: (WebKit::PluginInfoStore::getPluginInfo): Store the mime types that are supported by the plugin into the plugin argument.
Location:
trunk/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r70218 r70237  
     12010-10-21  Balazs Kelemen  <kbalazs@webkit.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] PluginInfoStore does not set up mime types for plugins
     6        https://bugs.webkit.org/show_bug.cgi?id=48063
     7
     8        * UIProcess/Plugins/qt/PluginInfoStoreQt.cpp:
     9        (WebKit::PluginInfoStore::getPluginInfo): Store the mime types
     10        that are supported by the plugin into the plugin argument.
     11
    1122010-10-21  Juha Savolainen  <juha.savolainen@weego.fi>
    213
  • trunk/WebKit2/UIProcess/Plugins/qt/PluginInfoStoreQt.cpp

    r69789 r70237  
    7373    const MIMEToDescriptionsMap& descriptions = package->mimeToDescriptions();
    7474    const MIMEToExtensionsMap& extensions = package->mimeToExtensions();
    75     Vector<MimeClassInfo> mimes(descriptions.size());
    7675    MIMEToDescriptionsMap::const_iterator descEnd = descriptions.end();
     76    plugin.info.mimes.reserveCapacity(descriptions.size());
    7777    unsigned i = 0;
    7878    for (MIMEToDescriptionsMap::const_iterator it = descriptions.begin(); it != descEnd; ++it) {
    79         MimeClassInfo& mime = mimes[i++];
     79        plugin.info.mimes.uncheckedAppend(MimeClassInfo());
     80        MimeClassInfo& mime = plugin.info.mimes[i++];
    8081        mime.type = it->first;
    8182        mime.desc = it->second;
Note: See TracChangeset for help on using the changeset viewer.