Reviewed by Anders.
authorkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Aug 2007 00:08:45 +0000 (00:08 +0000)
committerkdecker <kdecker@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Aug 2007 00:08:45 +0000 (00:08 +0000)
commitfbc1f0950331832d30fa5bfd1e59bf0b29c36ab4
tree73fc490448ac90cdb78533c3a635c9208ec4e45c
parent234bad59e220484883717a740412e647d22ce15e
    Reviewed by Anders.

        Fixed: <rdar://problem/5325262> REGRESSION (Tiger-Leopard): PictureTalk plug-in doesn't work

        The problem was that this particular plug-in handles "text/ptf", but WebCore wasn't giving the plug-in a chance to load
        any type with "text/"

        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument): Allow plug-ins to once again use "text/" MIME types, but only if the MIME
        type is not "text/plain". Disallowing plug-ins to use text/plain prevents plug-ins from hijacking a fundamental type
        that the browser is expected to handle, and also serves as an optimization to prevent loading the plug-in database in
        the common case.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/dom/DOMImplementation.cpp