Skip to content

[compression-dictionary] Add WPT test for large HTML resources. - #61495

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-8126502
Jul 23, 2026
Merged

[compression-dictionary] Add WPT test for large HTML resources.#61495
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-8126502

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

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}

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}

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot
chromium-wpt-export-bot merged commit ebb8dee into master Jul 23, 2026
27 checks passed
@chromium-wpt-export-bot
chromium-wpt-export-bot deleted the chromium-export-cl-8126502 branch July 23, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants