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   

Cameron McCormack (:heycam)
Reported 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
Attachments
Radar WebKit Bug Importer
Comment 1 2021-05-02 20:38:14 PDT
Note You need to log in before you can comment on or make changes to this bug.