Changeset 75439 in webkit


Ignore:
Timestamp:
Jan 10, 2011 2:47:22 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-10 Leonid Ebril <leonid.ebril@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

https://bugs.webkit.org/show_bug.cgi?id=51879

Set the PluginQuirkDontSetNullWindowHandleOnDestroy for Adobe Lite
plugin if Flash 10 or newer (for Symbian platform), setting a nulled
window handler on destroy crashes WebKit.

  • plugins/symbian/PluginPackageSymbian.cpp: (WebCore::PluginPackage::fetchInfo): (WebCore::PluginPackage::determineQuirks):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r75437 r75439  
     12011-01-10  Leonid Ebril  <leonid.ebril@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=51879
     6
     7        Set the PluginQuirkDontSetNullWindowHandleOnDestroy for Adobe Lite 
     8        plugin if Flash 10 or newer (for Symbian platform), setting a nulled
     9        window handler on destroy crashes WebKit.
     10
     11        * plugins/symbian/PluginPackageSymbian.cpp:
     12        (WebCore::PluginPackage::fetchInfo):
     13        (WebCore::PluginPackage::determineQuirks):
     14
    1152011-01-10  Martin Robinson  <mrobinson@igalia.com>
    216
  • trunk/Source/WebCore/plugins/symbian/PluginPackageSymbian.cpp

    r58752 r75439  
    5656           
    5757            m_mimeToExtensions.add(mime[0], exts); // <MIME>,<ext1,ext2,ext3>
     58            determineQuirks(mime[0]);
    5859            if (mime.size() > 2)
    5960                m_mimeToDescriptions.add(mime[0], mime[2]); // <MIME>,<Description>
     
    6263    unload();
    6364    return true;
     65}
     66
     67void PluginPackage::determineQuirks(const String& mimeType)
     68{
     69    if (mimeType == "application/x-shockwave-flash") {
     70        PlatformModuleVersion flashTenVersion(0x000a0000);
     71        if (compareFileVersion(flashTenVersion) >= 0) {
     72            // Flash 10 doesn't like having a 0 window handle.
     73            m_quirks.add(PluginQuirkDontSetNullWindowHandleOnDestroy);
     74        }
     75    }
    6476}
    6577
Note: See TracChangeset for help on using the changeset viewer.