Bug 225043

Summary: img current request should be updated off a microtask
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Cameron McCormack (:heycam) 2021-04-25 20:37:24 PDT
We currently do it immediately.  Or at least, we expose through HTMLImageElement.currentSrc what the new current request's URL is immediately, but we should be doing this (and initiating the image load itself) off a microtask.

See https://html.spec.whatwg.org/#updating-the-image-data.

Submitted a WPT PR to test this: https://github.com/web-platform-tests/wpt/pull/28679
Comment 1 Radar WebKit Bug Importer 2021-05-02 20:38:14 PDT
<rdar://problem/77443226>