Page MenuHomePhorge

Long filename in file upload popup not ellipsized in Firefox; overflows box
Closed, ResolvedPublic

Description

Upstreaming from https://phabricator.wikimedia.org/T316305

Reproducible in Firefox 115. Cannot reproduce in Chromium 114.

Steps to reproduce:

  1. PHP 8.2.8, Phorge at 85539ce25559b0a4dcfea54562a31d75ae7b27ad
  2. Use Firefox browser
  3. Create a file on your harddisk named 0001-patch-with-some-really-long-string-so-it-will-be-partially-outside-of-that-custom-file-upload-dialog-in-Phorge.diff
  4. Go to an existing task and select Upload File from the comment field toolbar
  5. In the overlay dialog, select the Browse... button next to No files selected.
  6. Select the file with the long name
  7. Look at the dialog

Expected outcome:
Filename ellipsized and does not escape dialog window, like in Chromium

Screenshot_from_20230713_chromium.png (586×1 px, 72 KB)

Actual outcome:
Filename not ellipsized and escapes dialog window

Screenshot_from_20230713_firefox.png (595×1 px, 81 KB)