mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00

The only way that this can happen is if we get through the ShouldTreatAsCompleteDueToSyncDecode check returning true in the case of the image being errored. https://hg.mozilla.org/integration/autoland/rev/645a4d6461ca was supposed to deal with this, but my guess is that there is a slight race condition in which the error status isn't there at the beginning, but is there after the StartDecoding call. It seems returning BAD_IMAGE rather than painting transparent if we hit a broken image is a better thing to do than what we're doing now, and should fix the intermittent issue. Differential Revision: https://phabricator.services.mozilla.com/D101361