Descriptionandroid: 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205853
Patch Set 1 #Patch Set 2 : Added tests. #
Total comments: 11
Patch Set 3 : Rebased. #Patch Set 4 : No CORS/redirect check when using media source. #
Total comments: 1
Patch Set 5 : No need to do anything in destructor. #
Total comments: 2
Patch Set 6 : Rebased. Same origin = true for media streams. #
Total comments: 14
Patch Set 7 : Rebased again. #
Total comments: 2
Patch Set 8 : Address feedback. Add UMA stat. #Patch Set 9 : Fetch media info in parallel. #
Total comments: 6
Patch Set 10 : Address nits. #Messages
Total messages: 32 (0 generated)
|