tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 0c5c189f65819a2401901f152315c35a897dfcdf
parent deccfee41350b049f1e3d17d253cebdbbe3d6f8c
Author: Andrei Volykhin <andrei.volykhin@gmail.com>
Date:   Fri, 14 Nov 2025 10:24:24 +0000

Bug 1999971 [wpt PR 56014] - media: Fix the order of events for autoplay media, a=testonly

Automatic update from web-platform-tests
media: Fix the order of events for autoplay media

Following the HTML specification, the order of events for
autoplaying media files (<video autoplay>) has been corrected:
- carplay, canplaythrough, play, playing

https://html.spec.whatwg.org/multipage/#ready-states:event-media-canplaythrough

WhatWG PR: https://github.com/whatwg/html/pull/1409

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>

--

wpt-commits: 5f6bfca0b535342b74a66485bbfeea563a857f8f
wpt-pr: 56014

Diffstat:
Mtesting/web-platform/tests/html/semantics/embedded-content/media-elements/ready-states/autoplay.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testing/web-platform/tests/html/semantics/embedded-content/media-elements/ready-states/autoplay.html b/testing/web-platform/tests/html/semantics/embedded-content/media-elements/ready-states/autoplay.html @@ -26,7 +26,7 @@ function autoplay_test(tagName, src) { var e = document.createElement(tagName); e.src = src; e.autoplay = true; - expect_events(t, e, ['canplay', 'play', 'playing', 'canplaythrough']); + expect_events(t, e, ['canplay', 'canplaythrough', 'play', 'playing']); }, tagName + '.autoplay'); async_test(function(t) { @@ -35,7 +35,7 @@ function autoplay_test(tagName, src) { e.autoplay = true; e.pause(); // sets the autoplaying flag to false e.load(); // sets the autoplaying flag to true - expect_events(t, e, ['canplay', 'play', 'playing', 'canplaythrough']); + expect_events(t, e, ['canplay', 'canplaythrough', 'play', 'playing']); }, tagName + '.autoplay and load()'); async_test(function(t) {