mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibWeb/CSS: Set request's referrer in fetch_a_style_resource()
THe `location` is now a URL so we can pass it directly.
This commit is contained in:
parent
9284530a9f
commit
3fe978c8a0
Notes:
github-actions[bot]
2025-04-15 09:31:19 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/3fe978c8a00 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4319
1 changed files with 2 additions and 3 deletions
|
@ -44,9 +44,8 @@ void fetch_a_style_resource(String const& url_value, CSSStyleSheet const& sheet,
|
|||
// FIXME: No specs seem to define these yet. When they do, implement them.
|
||||
|
||||
// 6. If req’s mode is "cors", set req’s referrer to sheet’s location. [CSSOM]
|
||||
if (request->mode() == Fetch::Infrastructure::Request::Mode::CORS) {
|
||||
// FIXME: sheet's location is an optional string, what do we do here?
|
||||
}
|
||||
if (request->mode() == Fetch::Infrastructure::Request::Mode::CORS)
|
||||
request->set_referrer(sheet.location().value());
|
||||
|
||||
// 7. If sheet’s origin-clean flag is set, set req’s initiator type to "css". [CSSOM]
|
||||
if (sheet.is_origin_clean())
|
||||
|
|
Loading…
Add table
Reference in a new issue