Bug 225043 - img current request should be updated off a microtask
Summary: img current request should be updated off a microtask
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-25 20:37 PDT by Cameron McCormack (:heycam)
Modified: 2021-05-02 20:38 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>