-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug]: Filename in "Open" PDF dialog overflows screen #21816
Comments
I tested the issue on Firefox Preview Nightly 2021-11-02. I was able to reproduce it, however the issue also occurs on Chrome. Devices used:
|
…creen Changing the download file name length to the max allowed by AS (251 char, won’t compile if more; max would be 260 for latest windows versions, but generally it is 255), and changing the UI test to check if the long file name is fully visible.
…creen Changing the downloaded dialog layout to properly display really long file names
…creen Adding a comment to explain the download file name choice
…creen Changing the download file name length to the max allowed by AS (251 char, won’t compile if more; max would be 260 for latest windows versions, but generally it is 255), and changing the UI test to check if the long file name is fully visible. Changing the downloaded dialog layout to properly display really long file names.
Changing the download file name length to the max allowed by AS (251 char, won’t compile if more; max would be 260 for latest windows versions, but generally it is 255), and changing the UI test to check if the long file name is fully visible. Changing the downloaded dialog layout to properly display really long file names.
Changing the download file name length to the max allowed by AS (251 char, won’t compile if more; max would be 260 for latest windows versions, but generally it is 255), and changing the UI test to check if the long file name is fully visible. Changing the downloaded dialog layout to properly display really long file names.
This PR #22325 breaks the default To increase the max value, run the following powershell command and reboot: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force Source: https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell |
Thanks, @Taknok ! That was unintentional, of course. |
Should be fixed by #22354 |
I am a bit puzzled on what to do. The very idea behind adding a file with such a long name was to test if the app can properly display downloaded file with max possible name length. Which happens to be in the range of 250-260. Which happens to be also the max path name in Windows systems. While on MacOS it is 1024, and on Linux 4096. Shouldn't the most of developers working on Widnows increase the max path length? Having max path length the same as max file name length on most of the systems is prone to errors. Even if we cut the file name in half, some windows users might still run into the same problem if they have a long project folder path on its own. Not holding any strong opinions though. Just want to find balance between the need to test displaying of max length file names and adjusting to Windows system requirements. |
I share your feelings. I report this as a remark, in order to be sure everyone was aware.
Another option would be to change the filename length according to environment, but I do not like this idea. Joke: But why does anybody sane want to dev on Windows ? |
#22354 landed, I confirmed that this fixed |
Verified as fixed on latest Nightly build, with LG G7 Fit (Android 8.1). |
Changing the download file name length to the max allowed by AS (251 char, won’t compile if more; max would be 260 for latest windows versions, but generally it is 255), and changing the UI test to check if the long file name is fully visible. Changing the downloaded dialog layout to properly display really long file names.
Steps to reproduce
Expected behaviour
Filename fits in dialog
Actual behaviour
Filename overflows "Open" dialog (this doesn't affect earlier "Download" dialog)
Device name
Moto G5
Android version
?
Firefox release type
Firefox Nightly
Firefox version
Nightly 10/8
Device logs
No response
Additional information
No response
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: