Bug 243790 - Implement list of available images matching logic
Summary: Implement list of available images matching logic
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Przemyslaw Gorszkowski
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-10 10:16 PDT by Rob Buis
Modified: 2023-10-13 12:23 PDT (History)
7 users (show)

See Also:


Attachments
Patch (5.82 KB, patch)
2022-08-10 10:18 PDT, Rob Buis
no flags Details | Formatted Diff | Diff
Patch (5.85 KB, patch)
2022-08-11 04:04 PDT, Rob Buis
no flags Details | Formatted Diff | Diff
Patch (6.03 KB, patch)
2022-08-12 08:50 PDT, Rob Buis
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Buis 2022-08-10 10:16:35 PDT
Implement list of available images matching logic:
https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data:list-of-available-images
Comment 1 Rob Buis 2022-08-10 10:18:21 PDT
Created attachment 461530 [details]
Patch
Comment 2 Rob Buis 2022-08-11 04:04:39 PDT
Created attachment 461541 [details]
Patch
Comment 3 Rob Buis 2022-08-12 08:50:42 PDT
Created attachment 461562 [details]
Patch
Comment 4 Radar WebKit Bug Importer 2022-08-17 10:17:15 PDT
<rdar://problem/98788086>
Comment 5 Rob Buis 2022-08-22 06:52:42 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3534
Comment 6 Rob Buis 2022-08-22 07:06:04 PDT
@domfarolino Could you have a look at the patch? In particular I am not sure how the HTML preloader fits in with the matching logic, is there anything in the spec related to this?
Comment 7 Dominic Farolino 2022-08-24 17:36:45 PDT
Where should I respond? Here or on GitHub?
Comment 8 Przemyslaw Gorszkowski 2023-09-27 04:52:37 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18271
Comment 9 EWS 2023-10-12 00:39:47 PDT
Committed 269243@main (873115a0db74): <https://commits.webkit.org/269243@main>

Reviewed commits have been landed. Closing PR #18271 and removing active labels.
Comment 10 Fujii Hironori 2023-10-13 04:04:55 PDT
http/tests/lazyload/lazy.html is failing after 269243@main.
https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Flazyload%2Flazy.html
Comment 11 Przemyslaw Gorszkowski 2023-10-13 11:01:11 PDT
It seems that memory cache is not reset between tests, that is why this test fails (the image is load from memory cache in case of img with loading='lazy'). If I run test as single test: 

Tools/Scripts/run-webkit-tests --gtk LayoutTests/http/tests/lazyload/lazy.html

the test passes.

I will check how it can be fixed.
Comment 12 Przemyslaw Gorszkowski 2023-10-13 12:23:33 PDT
I created a separate bug report about it: https://bugs.webkit.org/show_bug.cgi?id=263131