Changeset 83625 in webkit


Ignore:
Timestamp:
Apr 12, 2011 12:56:04 PM (13 years ago)
Author:
andersca@apple.com
Message:

2011-04-12 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Cisco Meeting Center will not download or launch from Safari
https://bugs.webkit.org/show_bug.cgi?id=58366
<rdar://problem/8987139>

It's OK if a plug-in has less (or more) MIME type descriptions than actual MIME types.


  • Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm: (WebKit::getPluginInfoFromCarbonResources):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r83624 r83625  
     12011-04-12  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Cisco Meeting Center will not download or launch from Safari
     6        https://bugs.webkit.org/show_bug.cgi?id=58366
     7        <rdar://problem/8987139>
     8
     9        It's OK if a plug-in has less (or more) MIME type descriptions than actual MIME types.
     10       
     11        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
     12        (WebKit::getPluginInfoFromCarbonResources):
     13
    1142011-04-12  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm

    r82290 r83625  
    274274        return false;
    275275
    276     size_t numMimeTypes = mimeTypesAndExtensions.size() / 2;
    277    
    278276    // Now get the MIME type descriptions string list. This string list needs to be the same length as the number of MIME types.
    279277    Vector<String> mimeTypeDescriptions;
     
    281279        return false;
    282280
    283     if (mimeTypeDescriptions.size() != numMimeTypes)
    284         return false;
    285 
    286281    // Add all MIME types.
    287282    for (size_t i = 0; i < mimeTypesAndExtensions.size() / 2; ++i) {
     
    289284       
    290285        const String& mimeType = mimeTypesAndExtensions[i * 2];
    291         const String& description = mimeTypeDescriptions[i];
     286        String description;
     287        if (i < mimeTypeDescriptions.size())
     288            description = mimeTypeDescriptions[i];
    292289       
    293290        mimeClassInfo.type = mimeType.lower();
Note: See TracChangeset for help on using the changeset viewer.