Changeset 141281 in webkit


Ignore:
Timestamp:
Jan 30, 2013 10:20:30 AM (11 years ago)
Author:
jer.noble@apple.com
Message:

MediaPlayerPrivateQTKit claims it supports application/x-diskcopy, breaking downloads.
https://bugs.webkit.org/show_bug.cgi?id=108237

Reviewed by Eric Carlson.

Disclaim any non-'video/' or 'audio/' types which QTKit purports to support.

  • platform/graphics/mac/MediaPlayerPrivateQTKit.mm:

(WebCore::addFileTypesToCache):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141280 r141281  
     12013-01-29  Jer Noble  <jer.noble@apple.com>
     2
     3        MediaPlayerPrivateQTKit claims it supports application/x-diskcopy, breaking downloads.
     4        https://bugs.webkit.org/show_bug.cgi?id=108237
     5
     6        Reviewed by Eric Carlson.
     7
     8        Disclaim any non-'video/' or 'audio/' types which QTKit purports to support.
     9
     10        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
     11        (WebCore::addFileTypesToCache):
     12
    1132013-01-30  Florin Malita  <fmalita@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm

    r137159 r141281  
    14771477            unsigned count = typesForExtension.size();
    14781478            for (unsigned ndx = 0; ndx < count; ++ndx) {
    1479                 if (!cache.contains(typesForExtension[ndx]))
    1480                     cache.add(typesForExtension[ndx]);
     1479                String& type = typesForExtension[ndx];
     1480
     1481                // QTKit will return non-video MIME types which it claims to support, but which we
     1482                // do not support in the <video> element. Disclaim all non video/ or audio/ types.
     1483                if (!type.startsWith("video/") && !type.startsWith("audio/"))
     1484                    continue;
     1485
     1486                if (!cache.contains(type))
     1487                    cache.add(type);
    14811488            }
    14821489        }
Note: See TracChangeset for help on using the changeset viewer.