WebCore:
Reviewed by Adele.
OS X fix for <rdar://problem/
5605682>
Disallow streaming protocols for media elements
and <rdar://problem/
5668711>
Limit the container and codec types that the <video> tag supports
- Disable unsupported QuickTime tracks types.
- Disallow streaming protocols (for now).
- Set QTMovie QTMoviePreventExternalURLLinksAttribute and QTSecurityPolicyNoCrossSiteAttribute
to limit QuickTime's access to external resources.
Windows patch coming up.
Tests: media/broken-video.html
media/unsupported-rtsp.html
media/unsupported-tracks.html
* platform/graphics/mac/MediaPlayerPrivateQTKit.h:
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
(WebCore::MediaPlayerPrivate::createQTMovie):
(WebCore::MediaPlayerPrivate::updateStates):
(WebCore::MediaPlayerPrivate::disableUnsupportedTracks):
LayoutTests:
Reviewed by Adele.
Tests for <rdar://problem/
5605682>
Disallow streaming protocols for media elements
and <rdar://problem/
5668711>
Limit the container and codec types that the <video> tag supports
- test that rtsp: protocol is disabled (for now).
- test that QuickTime files with unsupported track types are handled correctly
- test that broken video file produces an error
* media/broken-video-expected.txt: Added.
* media/broken-video.html: Added.
* media/content/garbage.mp4: Added.
* media/content/unsupported_track.mov: Added.
* media/unsupported-rtsp-expected.txt: Added.
* media/unsupported-rtsp.html: Added.
* media/unsupported-tracks-expected.txt: Added.
* media/unsupported-tracks.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29547
268f45cc-cd09-0410-ab3c-
d52691b4dbfc