Bug
1476483 [wpt PR 12044] - ImageLoading: Don't reschedule a microtask on attach if one is pending., a=testonly
Automatic update from web-platform-testsImageLoading: Don't reschedule a microtask on attach if one is pending.
This patch ensures that we don't reschedule an image loading microtask
if there is one pending already. This is important to ensure that image
decode microtasks see the image data (ie the image loading microtask
runs first) if there are no other changes only insertion into a
document.
The existing tests that were added for this still pass (from crrev.com/
cdd156337ada7)
http/tests/misc/image-blocked-src-change.html
http/tests/misc/image-blocked-src-no-change.html
http/tests/xmlhttprequest/xmlhttprequest-image-not-loaded-svg.svg
http/tests/xmlhttprequest/xmlhttprequest-image-not-loaded.html
The new test fails without the change and passes with.
R=chrishtr@chromium.org
Bug: 864306
Change-Id: I1d3d2ed4c12b53fab931e55a85c4f5cd18fe1cc4
Reviewed-on: https://chromium-review.googlesource.com/
1141121
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577006}
--
wpt-commits:
6aabe74f9e6a4b9471f112e15b56b9e1a39004e5
wpt-pr: 12044