Fix browser_extension_correction.js to work when download improvements are enabled
Categories
(Firefox :: Downloads Panel, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: molly, Assigned: molly)
References
Details
(Whiteboard: [fidefe-mr11-downloads])
Attachments
(2 files)
browser_extension_correction.js in the exthandler tests expects to have the download modal open when a download begins, and much of its logic is based on that assumption. But turning on the browser.download.improvements_to_download_panel pref will disable the modal, so we need to alter the test to work under both scenarios.
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
On try and on my machine, after D128648 the test still times out because
for the test_broken_saved_handlerinfo_and_useless_mimetypes test, first
awaiting the task
that gets passed means that the download has already
finished by the time we create the download finished promise.
This patch moves creating that promise before the task
is started.
It also broadens the conditions in which we await this promise, because
in the case without file extensions and without a dialog, we were otherwise
no longer awaiting anything, which meant that the next test's check for
a finished download would resolve with the previous test's download, causing
confusion/breakage.
Comment 4•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 6•3 years ago
|
||
bugherder |
Comment hidden (obsolete) |
Comment 8•3 years ago
|
||
This was a test-only change, so it can't have been responsible for build times improvements.
Comment 9•3 years ago
|
||
Thanks for noticing, I managed to retrigger some data points and the graph shows the right improvement now.
Description
•