mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-18 23:12:02 +00:00
LibWeb: Set Fetch destination of <link rel="stylesheet"> requests
This commit is contained in:
parent
1edf7a8aa2
commit
07231e74c7
Notes:
github-actions[bot]
2025-06-30 22:25:50 +00:00
Author: https://github.com/Lubrsi
Commit: 07231e74c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4367
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/shannonbooth
1 changed files with 4 additions and 0 deletions
|
@ -563,6 +563,10 @@ bool HTMLLinkElement::stylesheet_linked_resource_fetch_setup_steps(Fetch::Infras
|
|||
if (document().is_render_blocking_element(*this))
|
||||
request.set_render_blocking(true);
|
||||
|
||||
// FIXME: We currently don't set the destination for stylesheets, so we do it here.
|
||||
// File a spec issue that the destination for stylesheets is not actually set if the `as` attribute is missing.
|
||||
request.set_destination(Fetch::Infrastructure::Request::Destination::Style);
|
||||
|
||||
// 5. Return true.
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue