Changeset 66622 in webkit
- Timestamp:
- Sep 1, 2010 3:55:53 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r66620 r66622 1 2010-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 1 16 2010-09-01 Tony Chang <tony@chromium.org> 2 17 -
trunk/WebCore/ChangeLog
r66615 r66622 1 2010-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 1 19 2010-09-01 Rob Buis <rwlbuis@gmail.com> 2 20 -
trunk/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm
r66411 r66622 265 265 { 266 266 // 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] = { 269 271 {'eat ', 'TEXT', 'text', 0, 0}, 270 272 {'eat ', 'TXT ', 'text', 0, 0}, 271 273 {'eat ', 'utxt', 'text', 0, 0}, 272 274 {'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}, 273 280 }; 274 281 for (size_t i = 0; i < sizeof(componentsToDisable)/sizeof(componentsToDisable[0]); ++i)
Note: See TracChangeset
for help on using the changeset viewer.