mirror of
https://github.com/servo/servo
synced 2026-05-12 09:56:50 +02:00
Follow the HTML implemetation and support selection of the 'media' element loading source from 'source' children elements with validation processing over their 'media/src/type' attributes. See https://html.spec.whatwg.org/multipage/#concept-media-load-algorithm To handle loading with multiple 'source' children was introduced source children pointer to track the remaining unprocessed 'source' elements after the resource selection algorithm was invoked. Testing: Changes in the following tests with improvements: - html/semantics/embedded-content/media-elements/loading-the-media-resource/* - webgl/tests/conformance/textures/misc/texture-video-transparent.html with regressions (after enabled 'source' type attribute validation): - content-security-policy/media-src/media-src* - mixed-content/gen/top\*audio|video-tag* - resource-timing/initiator-type/* Fixes: https://github.com/servo/servo/issues/21481 Fixes: https://github.com/servo/servo/issues/34127 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>