Skip to content

Check if url functions are supported in attr() security tests#59188

Open
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
chromium-export-cl-7748788
Open

Check if url functions are supported in attr() security tests#59188
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
chromium-export-cl-7748788

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Apr 14, 2026

Blink, as well as Gecko and Webkit do not support src() function [0]
and image() function [1]. Hypothetical string() function is not
supported as well. This causes some of the attr() security tests to
incorrectly fail. If function is not supported this should not be a
violation to the security, so we can just skip these tests.

This Cl also restructures test a bit, use consts instead of long urls.

[0] https://drafts.csswg.org/css-values-4/#urls
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/image/image

Fixed: 489670248
Change-Id: I7fe76e02135d983c4f2f801d63a28eee7cb992d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7748788
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Munira Tursunova <moonira@google.com>
Cr-Commit-Position: refs/heads/main@{#1614350}

Blink, as well as Gecko and Webkit do not support src() function [0]
and image() function [1]. Hypothetical string() function is not
supported as well. This causes some of the attr() security tests to
incorrectly fail. If function is not supported this should not be a
violation to the security, so we can just skip these tests.

This Cl also restructures test a bit, use consts instead of long urls.

[0] https://drafts.csswg.org/css-values-4/#urls
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/image/image

Fixed: 489670248
Change-Id: I7fe76e02135d983c4f2f801d63a28eee7cb992d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7748788
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Munira Tursunova <moonira@google.com>
Cr-Commit-Position: refs/heads/main@{#1614350}
Copy link
Copy Markdown
Collaborator

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

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.

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