[compression-dictionary] Add WPT test for large HTML resources. - #61495
Merged
Conversation
chromium-wpt-export-bot
force-pushed
the
chromium-export-cl-8126502
branch
from
July 23, 2026 09:16
06b75ca to
901266d
Compare
chromium-wpt-export-bot
marked this pull request as ready for review
July 23, 2026 10:03
Currently, most of the tests use the short text "This is a test dictionary." as both dictionary content and compressed data, and the empty string as match destination. This CL introduces some large pages as PNG images, HTML subframes, CSS stylesheets or JS scripts as well as dcb/dcz-compressed versions of each of them (using either itself or another one as a dictionary). The content was generated with the help of Domato fuzzer and compressed with a simple Makefile. New WPT tests are added to check they can be properly decompressed and used normally in a page. Dictionaries are registered using destinations "image", "script", "style" and "iframe". The Makefile and tests are written in a generic way, so that it can be easy to add interesting test cases that show up in the future. Bug: 522338661, 40255884 Change-Id: I301d28c240eb303c81e3497651b6094ed7d06ca2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8126502 Reviewed-by: Patrick Meenan <pmeenan@chromium.org> SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com> Commit-Queue: Frédéric Wang Nélar <fwang@igalia.com> Cr-Commit-Position: refs/heads/main@{#1666933}
chromium-wpt-export-bot
force-pushed
the
chromium-export-cl-8126502
branch
from
July 23, 2026 10:04
901266d to
21ca8e6
Compare
wpt-pr-bot
approved these changes
Jul 23, 2026
wpt-pr-bot
left a comment
Collaborator
There was a problem hiding this comment.
The review process for this patch is being conducted in the Chromium project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, most of the tests use the short text "This is a test
dictionary." as both dictionary content and compressed data, and the
empty string as match destination. This CL introduces some large
pages as PNG images, HTML subframes, CSS stylesheets or JS scripts
as well as dcb/dcz-compressed versions of each of them (using either
itself or another one as a dictionary). The content was generated
with the help of Domato fuzzer and compressed with a simple Makefile.
New WPT tests are added to check they can be properly decompressed
and used normally in a page. Dictionaries are registered using
destinations "image", "script", "style" and "iframe".
The Makefile and tests are written in a generic way, so that it
can be easy to add interesting test cases that show up in the
future.
Bug: 522338661, 40255884
Change-Id: I301d28c240eb303c81e3497651b6094ed7d06ca2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8126502
Reviewed-by: Patrick Meenan <pmeenan@chromium.org>
SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com>
Commit-Queue: Frédéric Wang Nélar <fwang@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1666933}