Bug 1476483 [wpt PR 12044] - ImageLoading: Don't reschedule a microtask on attach...
commit4c82cf621873fcaffa3a242cf3e212d5e4bda972
authorVladimir Levin <vmpstr@chromium.org>
Wed, 25 Jul 2018 18:34:11 +0000 (25 18:34 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Sun, 29 Jul 2018 17:56:03 +0000 (29 18:56 +0100)
treec3963c890b7b79b2ab7c9fcd52df50fe65f5290a
parent25917c5ff93de232863b6806c516c80e9391643d
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
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach.html [new file with mode: 0644]