Treat a "not started" image resource in ImageLoader as "no resource"
When loading of images is disabled, ResourceFetcher will return an ImageResource{,Content} whose status is "not started". Since this resource will not get a "finished" notification, we didn't update the <img> to show fallback content when the image is first requested. Subsequent loads would yield the fallback correctly because the cached resource was returned. Add a case to ImageLoader::DoUpdateFromElement() to check for this case and call NoImageResourceToLoad(). Bug: 982603 Change-Id: I6377f87a45745c364f92ceb0e8c4dabd4fbc1b9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1695549Reviewed-by:Hiroshige Hayashizaki <hiroshige@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#676532}
Showing
Please register or sign in to comment