tor-browser

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

commit 5df0619cef9a850741039d32de72c77179201ba6
parent 8a293f8c8be20ec8ea4d63eded43d25a54cdcc45
Author: Dale Curtis <dalecurtis@chromium.org>
Date:   Thu,  6 Nov 2025 21:34:45 +0000

Bug 1997439 [wpt PR 55773] - [WebCodecs] Fix AV1 corruption test so dav1d actually fails, a=testonly

Automatic update from web-platform-tests
[WebCodecs] Fix AV1 corruption test so dav1d actually fails

Test data was insufficiently corrupted, so dav1d just treats it as
partial data and expects more data to come. This change increases
the corruption of chunks.

R=eugene

Change-Id: Ia3eeea8faaf9dafe53a0a7fd3c148821fbc91f1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7102887
Reviewed-by: Eugene Zemtsov <eugene@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1538882}

--

wpt-commits: fac3072726a3cd157d4442698276ccf4bf4dd150
wpt-pr: 55773

Diffstat:
Mtesting/web-platform/tests/webcodecs/videoDecoder-codec-specific-setup.js | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/testing/web-platform/tests/webcodecs/videoDecoder-codec-specific-setup.js b/testing/web-platform/tests/webcodecs/videoDecoder-codec-specific-setup.js @@ -189,8 +189,12 @@ function createVideoDecoder(t, callbacks) { function createCorruptChunk(index) { let bad_data = CHUNK_DATA[index]; - for (var i = 0; i < bad_data.byteLength; i += 4) + // AV1 may require more extensive corruption to trigger decoding errors with + // some software decoders (e.g., dav1d). + let skip = CONFIG.codec.indexOf('av01') >= 0 ? 2 : 4; + for (var i = 0; i < bad_data.byteLength; i += skip) { bad_data[i] = 0xFF; + } return new EncodedVideoChunk( {type: 'delta', timestamp: index, data: bad_data}); }