Skip to content

Remove "font" from initiator type value list #1837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

guohuideng2024
Copy link
Contributor

@guohuideng2024 guohuideng2024 commented Jun 26, 2025

@guohuideng2024
Copy link
Contributor Author

guohuideng2024 commented Jun 26, 2025

I am revising/updating the "initiator type" value list.

I think the "font" is a possible request destination, which works with a initiator type of "css". And "font" is not a "initiator type" value.

In fetch standard, "font" is associated with "CSS' @font-face". See the table right below https://fetch.spec.whatwg.org/#request-initiator-type

In the WPT test, it's "css" that's returned for that.

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/resource-timing/initiator-type/style.html;l=42;drc=1d0cf3905ce74eae85ec01cffcb5a438bb042257

There is also a test that shows "font" as a request destination works with a "css" as a initiator type

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/loader/fetch/resource_fetcher_test.cc;l=1615;drc=e69b5f14cabdba23eb64d347878805c04fb538d6

@domenic
Copy link
Member

domenic commented Jun 27, 2025

Can you restore the pull request template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants