LibWeb: Set the initiator type for script-initiated CSS requests #4625
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.
Similar to other ad-hoc behavior in this method, we need to handle requests which are not associated with a style sheet. For example:
Will not be associated with a style sheet.
This is needed to ensure we fire a
PerformanceResourceTiming
event for this resource load. This is not currently testable in CI, as this event is also gated by HTTP/S requests.This fixes the first subtest of https://wpt.fyi/results/css/fetching/fetch-resources.sub.html?label=master&label=experimental&product=ladybird&aligned. We then time out on the second subtest because we don't yet implement
shape-outside
, thus don't fetch the URL being waited upon.