Changeset 66622 in webkit


Ignore:
Timestamp:
Sep 1, 2010 3:55:53 PM (14 years ago)
Author:
jer.noble@apple.com
Message:

2010-08-31 Jer Noble <jer.noble@apple.com>

Reviewed by Darin Adler.

WebKit should not accept PDFs as video.
https://bugs.webkit.org/show_bug.cgi?id=45013


QuickTime will accept a PDF as the source for a movie, and happily
convert that PDF into a .mov. WebKit should disable the eat and grip
PDF components which allow this.

Test: http/tests/media/pdf-served-as-pdf.html

  • platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivate::createQTMovie): Add PDF eat and grip components to the components which are disabled before opening a QTMovie.

2010-08-31 Jer Noble <jer.noble@apple.com>

Reviewed by Darin Adler.

WebKit should not accept PDFs as video.
https://bugs.webkit.org/show_bug.cgi?id=45013


Added a new test, similar to the text-served-as-text.html test, which
expects an error thrown when a PDF is set as the source of a <video>
element.

  • http/tests/media/pdf-served-as-pdf-expected.txt: Added.
  • http/tests/media/pdf-served-as-pdf.html: Added.
  • http/tests/media/resources/test.pdf: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r66620 r66622  
     12010-08-31  Jer Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKit should not accept PDFs as video.
     6        https://bugs.webkit.org/show_bug.cgi?id=45013
     7       
     8        Added a new test, similar to the text-served-as-text.html test, which
     9        expects an error thrown when a PDF is set as the source of a <video>
     10        element.
     11
     12        * http/tests/media/pdf-served-as-pdf-expected.txt: Added.
     13        * http/tests/media/pdf-served-as-pdf.html: Added.
     14        * http/tests/media/resources/test.pdf: Added.
     15
    1162010-09-01  Tony Chang  <tony@chromium.org>
    217
  • trunk/WebCore/ChangeLog

    r66615 r66622  
     12010-08-31  Jer Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKit should not accept PDFs as video.
     6        https://bugs.webkit.org/show_bug.cgi?id=45013
     7       
     8        QuickTime will accept a PDF as the source for a movie, and happily
     9        convert that PDF into a .mov.  WebKit should disable the eat and grip
     10        PDF components which allow this.
     11
     12        Test: http/tests/media/pdf-served-as-pdf.html
     13
     14        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
     15        (WebCore::MediaPlayerPrivate::createQTMovie): Add PDF eat and grip
     16        components to the components which are disabled before opening a
     17        QTMovie.
     18
    1192010-09-01  Rob Buis  <rwlbuis@gmail.com>
    220
  • trunk/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm

    r66411 r66622  
    265265{
    266266    // We must disable components each time we open a movie because we cannot guarantee
    267     // that the QTKitServer process hasn't disappeared on us:
    268     uint32_t componentsToDisable[4][5] = {
     267    // that the QTKitServer process hasn't disappeared on us.  eat/PDF and grip/PDF
     268    // components must be disabled twice since they are registered twice with different
     269    // flags:
     270    uint32_t componentsToDisable[9][5] = {
    269271        {'eat ', 'TEXT', 'text', 0, 0},
    270272        {'eat ', 'TXT ', 'text', 0, 0},   
    271273        {'eat ', 'utxt', 'text', 0, 0}, 
    272274        {'eat ', 'TEXT', 'tx3g', 0, 0}, 
     275        {'eat ', 'PDF ', 'vide', 0, 0}, 
     276        {'eat ', 'PDF ', 'vide', 0, 0}, 
     277        {'grip', 'PDF ', 'appl', 0, 0}, 
     278        {'grip', 'PDF ', 'appl', 0, 0}, 
     279        {'imdc', 'pdf ', 'appl', 0, 0}, 
    273280    };
    274281    for (size_t i = 0; i < sizeof(componentsToDisable)/sizeof(componentsToDisable[0]); ++i)
Note: See TracChangeset for help on using the changeset viewer.