Closed Bug 2094427 Opened 10 days ago Closed 7 days ago

test_net_failedtoprocess.html times out when run twice in the same browser

Categories

(Core :: Graphics: ImageLib, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

When image/test/mochitest/test_net_failedtoprocess.html runs twice in a row (the upcoming mochitest-plain-repeat jobs), the second run times out and then reports "No checks actually run".

If the decode error for invalid.jpg is only found after the load completed, the errored image stays in the image cache. The second run gets it from the cache without decoding it, so net:failed-to-process-uri-content never fires.

The patch clears the image cache in a cleanup function, as test_cache_eviction.html already does.

Blocks: 2095794

When the decode error for invalid.jpg is only found after the load completed, the errored image stays in the image cache, and a second run gets it from there without decoding it, so net:failed-to-process-uri-content never fires and the test times out.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3c3c521081e8 https://hg.mozilla.org/integration/autoland/rev/984be230963c Clear the image cache after test_net_failedtoprocess.html so a repeated run decodes invalid.jpg again, r=gfx-reviewers,bradwerth.
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: