2009-04-07 Anantanarayanan Iyengar <ananta@chromium.org>
authordarin@chromium.org <darin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2009 16:04:49 +0000 (16:04 +0000)
committerdarin@chromium.org <darin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2009 16:04:49 +0000 (16:04 +0000)
commit11518a49aeb1b5566e1c776f67c9f35790227f23
treed3249048744e8e38cd08f8c046fd36aafa93306d
parentec24e9bcea624781388ba96480ca999efba44605
2009-04-07  Anantanarayanan Iyengar  <ananta@chromium.org>

        Reviewed by Darin Fisher.

        Added support for returning plugins which support the wildcard mime type (*).
        This is on the same lines as Firefox, which uses a wildcard plugin (npnul32.dll) for
        plugin installation. The changes to support wildcard mime type matching are in
        PluginDatabase.cpp which is used by Webkit's plugin implementation, and
        PluginData.cpp/.h which is used by Chromium.

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

        Test: plugins/netscape-plugin-wildcard-plugin.html

        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument):
        * plugins/PluginData.cpp:
        (WebCore::PluginData::supportsMimeType):
        (WebCore::PluginData::supportsMimeTypeIgnoringWildCards):
        * plugins/PluginData.h:
        * plugins/PluginDatabase.cpp:
        (WebCore::PluginDatabase::pluginForMIMEType):
        * plugins/win/PluginPackageWin.cpp:
        (WebCore::PluginPackage::isPluginBlacklisted):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/plugins/netscape-plugin-wildcard-plugin-expected.txt [new file with mode: 0644]
LayoutTests/plugins/netscape-plugin-wildcard-plugin.html [new file with mode: 0644]
LayoutTests/plugins/plugin-javascript-access-expected.txt
WebCore/ChangeLog
WebCore/dom/DOMImplementation.cpp
WebCore/plugins/PluginData.cpp
WebCore/plugins/PluginData.h
WebCore/plugins/PluginDatabase.cpp
WebCore/plugins/win/PluginPackageWin.cpp
WebKit/mac/ChangeLog
WebKit/mac/Plugins/WebPluginDatabase.mm
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/Info.plist
WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp
WebKitTools/DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.rc
WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp