Open Bug 1814364 Opened 1 year ago

Figure out why test_DownloadLegacy.js is seeing DownloadTarget.size = 0

Categories

(Toolkit :: Downloads API, defect, P3)

defect

Tracking

()

People

(Reporter: mak, Unassigned)

References

Details

In Bug 1760112 [test_DownloadLegacy.js
(https://searchfox.org/mozilla-central/rev/d0cd6a42de9cbacd6d8f3253e2edc18076386282/toolkit/components/downloads/test/unit/test_DownloadLegacy.js) is frequently failing on DownloadTarget.size being zero when it should actually be a valid file size. That's a sign that either refresh() on it was not invoked or was not properly awaited for, though we could not find the actual issue yet.
I'm adding a workaround in common_test_download.js to avoid disabling the test.

You need to log in before you can comment on or make changes to this bug.