Closed Bug 1789598 Opened 3 years ago Closed 3 years ago

<img> "update the image data" should queue a microtask before making a resource selection

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1076583
Tracking Status
firefox106 --- affected

People

(Reporter: zcorpan, Unassigned)

References

Details

This test fails in Gecko (and WebKit, but passes in Chromium):

http://wpt.live/html/semantics/embedded-content/the-img-element/update-the-image-data/current-request-microtask.html

Results on wpt.fyi: https://wpt.fyi/results/html/semantics/embedded-content/the-img-element/update-the-image-data/current-request-microtask.html?label=experimental&label=master&aligned

The microtask is in the spec due to <picture>, we need to wait for all elements and attributes to be available (if building a DOM with script) before making a resource selection to avoid eager fetches of the wrong URL.

Depends on: 1076583
Component: Layout: Images, Video, and HTML Frames → DOM: Core & HTML
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
No longer depends on: 1076583
You need to log in before you can comment on or make changes to this bug.