Downloaded files drop-down shows wrong file sizes
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: meta, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0
Steps to reproduce:
Downloaded a file that was 643,691,475 bytes.
Actual results:
Downloaded files drop-down showed the size as 614MB.
Expected results:
Drop down should have either shown the size as 614MiB, or as 644MB.
The latter would probably be preferable since disk sizes are in base 10 units. Of note, macOS Finder shows the file size correctly in base 10 units.
Hello, thank you for the bug report!
Unfortunately I could not reproduce your issue. Would you be so kind as to answer a few questions so we can investigate this further?
- Could you please detail the steps to reproduce, or provide a download link so I can reproduce this issue?
- Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
- Does this issue happen with latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
- Does this issue happen when Firefox is in Troubleshoot Mode? Here’s a link on how to enable it: https://support.mozilla.org/en-US/kb/diagnose-firefox-issues-using-troubleshoot-mode#w_how-to-start-firefox-in-troubleshoot-mode
Moving the Component to ‘File Handling’. Please change if there’s a better fit, thank you.
OK, here's an example:
-
Go to https://go.dev/dl/
-
Click on the link to download go1.21.5.src.tar.gz.
-
When the file has finished downloading, verify that it is 26,986,890 bytes in length.
-
Click the download button in the Firefox toolbar to view the list of recently downloaded files, notice that Firefox says the file is 25.7MB.
The error is that the file is 25.7MiB, which is 27MB, but Firefox displays 25.7MB.
The fix would be for Firefox to either display 25.7MiB, or to display 27MB.
The problem still occurs with the latest Firefox nightly with a clean profile.
Thank you so much for the detailed STR, Matthew!
Reproducible using the steps mentioned in Comment 2 on:
- Firefox Nightly 122.0a1;
- Firefox RC1 121.0;
- Firefox 120.0.1;
Tested and reproduced on:
- Windows 10;
- macOS 12;
- Ubuntu 22;
Setting as NEW so the developing team can have a look.
Comment 4•1 year ago
|
||
This is a long-standing decision and matches what the large majority of other browsers and OSes do. macOS and Safari have chosen to use base 10 but that doesn't match Windows and Linux behaviour in most cases. Making this a per-platform choice would mean that the same file shows different sizes on different platforms (with the same suffix, just to add confusion), so that's not an attractive solution. Showing MiB units would confuse most users so is also not something we'd consider. So although imperfect, we are not likely to change this.
For reference, there was recent related conversation in https://groups.google.com/a/mozilla.org/g/firefox-dev/c/QBzGs9-3QDw .
Description
•