Closed Bug 1544570 Opened 2 years ago Closed 11 months ago

Add-on downloads briefly flash "NaN bytes/sec" when a download starts

Categories

(Toolkit :: Add-ons Manager, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla80
Tracking Status
firefox80 --- verified

People

(Reporter: dholbert, Assigned: a.park0324, Mentored, NeedInfo)

Details

(Keywords: good-first-bug)

Attachments

(4 files)

Attached image screenshot of bug

STR:

  1. Visit https://profiler.firefox.com/ and click through to install the Gecko Profiler add-on.

ACTUAL RESULTS:
When the add-on download starts, it briefly flashes the following text under the progress bar:

Unknown time left -- 0 bytes (NaN bytes/sec)

EXPECTED RESULTS:
We should never report a speed of NaN.

Note:
You may have to use a screen recorder to capture this moment of time -- it's very brief, but I did notice it visually when downloading an addon today (which prompted me to investigate, do a screen recording, and file this bug).

Here's the screencast that the attached screenshot is taken from.

The error happens at around 0:02 seconds.

Note: I'm not sure whether internet speed affects reproducibility, but if it matters, I do have a fairly fast connection (~130Mbps right now according to speedtest.net).

I'm also not sure what the right component is for this "add-on downloading" doorhanger experience; if I got it wrong, please recategorize as appropriate - thanks!

The priority flag is not set for this bug.
:ddurst, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ddurst)
Flags: needinfo?(ddurst)
Priority: -- → P2
Mentor: tomica
Keywords: good-first-bug
Priority: P2 → P3

Hello, I have a fix for this. Will open a change request soon, just reading the guidelines

Assignee: nobody → joshua.obrien
Status: NEW → ASSIGNED

Hi Joshua! how's it going with this bug?

Flags: needinfo?(joshua.obrien)

Hi Joshua, since we haven't heard from you in awhile we are going to unassign you from this bug and let other folks take it up. If you would like to keep working on it, please leave a comment or submit a patch.

Assignee: joshua.obrien → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(joshua.obrien)

Hi, I would like to pick this one up. I will submit a patch soon.

Assignee: nobody → a.park0324
Status: NEW → ASSIGNED

Hey sorry, had some life stuff going on and didn't get a chance to action the feedback on my initial patch. I plan to fix that up this weekend.

Oh I see you already made a patch, all good.

Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9e9dd54bc629
Set minimum time delta value to avoid division by zero. r=zombie
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80

Thanks so much for your contribution, Andrew! ✨ Your contribution has been added to our recognition wiki at https://wiki.mozilla.org/Add-ons/Contribute/Recognition.

Would you be interested in creating a profile on mozillians.org? I'd be happy to vouch for you!

Flags: needinfo?(a.park0324)
Flags: qe-verify+

Reproduced the initial issue using an old Nightly build from 2019-04-15. Verified that this issue is fixed using latest Firefox 80.0b5 across platforms (Windows 10 64bit, macOS 10.15 and Ubuntu 18.04 64bit) and with the help of this extension https://1password.com/browsers/firefox/

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.