mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 12:42:54 +00:00
LibWeb: Implement HTMLImageElement.fetchPriority
This commit is contained in:
parent
956106c6d8
commit
8315ad6759
Notes:
sideshowbarker
2024-07-17 00:37:23 +09:00
Author: https://github.com/jamierocks
Commit: 8315ad6759
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/24
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 26 additions and 2 deletions
|
@ -563,7 +563,8 @@ after_step_7:
|
|||
// 21. Set request's referrer policy to the current state of the element's referrerpolicy attribute.
|
||||
request->set_referrer_policy(ReferrerPolicy::from_string(get_attribute_value(HTML::AttributeNames::referrerpolicy)).value_or(ReferrerPolicy::ReferrerPolicy::EmptyString));
|
||||
|
||||
// FIXME: 22. Set request's priority to the current state of the element's fetchpriority attribute.
|
||||
// 22. Set request's priority to the current state of the element's fetchpriority attribute.
|
||||
request->set_priority(Fetch::Infrastructure::request_priority_from_string(get_attribute_value(HTML::AttributeNames::fetchpriority)).value_or(Fetch::Infrastructure::Request::Priority::Auto));
|
||||
|
||||
// 24. If the will lazy load element steps given the img return true, then:
|
||||
if (will_lazy_load_element()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue