commit | f7574895c6c11f2335059a29385bda29ffb75545 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Jun 12 17:37:07 2013 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Jun 12 17:37:07 2013 |
tree | 5517b41c108004c28084441c55f90e9e20e48189 | |
parent | b2694d32c13707fbda3c8b2121162fd59a5b5038 [diff] |
android: Implement single origin and CORS check for video This patch implements hasSingleSecurityOrigin and didPassCORSAccessCheck for the Android media player. Since we cannot query this information directly from the native media player, we use a dedicated resource loader to track redirects and perform the CORS access check. The native media player is only started after this process has completed. The new MediaInfoLoader class is based on BufferedResourceLoader. The info loading request is started in parallel to the media player, and the DOM ready state is updated only once the info loader has completed and the player has provided video metadata. BUG=234710 TEST=https://www.khronos.org/registry/webgl/conformance-suites/1.0.1/conformance/textures/tex-image-and-sub-image-2d-with-video.html Review URL: https://chromiumcodereview.appspot.com/16327002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205853 0039d316-1c4b-4281-b951-d872f2087c98