Closed
Bug 392718
Opened 17 years ago
Closed 17 years ago
With beautified ftp listings, long filenames are truncated, making them hard to read
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha8
People
(Reporter: stevee, Assigned: dao)
References
Details
(Keywords: regression)
Attachments
(2 files, 3 obsolete files)
166.61 KB,
image/png
|
Details | |
2.30 KB,
patch
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8pre) Gecko/2007081716 Minefield/3.0a8pre ID:2007081716 After the landing of bug 294800, long filenames are now truncated which makes it hard to distinguish between such filenames that are similar, and also makes it sometimes hard to see what filetype a file is. This makes navigating and downloading files using ftp harder.
Reporter | ||
Updated•17 years ago
|
Summary: With beautify ftp listings, long filenames are truncated → With beautified ftp listings, long filenames are truncated, making them hard to read
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → dao
Status: ASSIGNED → NEW
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•17 years ago
|
||
I still have to test this, since my c++ skills are not mature.
Assignee | ||
Updated•17 years ago
|
OS: Windows 2000 → All
Hardware: PC → All
Comment 2•17 years ago
|
||
This does the same thing but uses the Replace function (thus saving codesize). I hope you don't mind Dao...
Attachment #277257 -
Flags: superreview?
Attachment #277257 -
Flags: review?(bzbarsky)
Updated•17 years ago
|
Attachment #277257 -
Flags: superreview? → superreview?(bzbarsky)
Updated•17 years ago
|
Component: File Handling → Networking
Product: Firefox → Core
QA Contact: file.handling → networking
Assignee | ||
Comment 3•17 years ago
|
||
Comment on attachment 277257 [details] [diff] [review] Patch The surrogate checks are needed _after_ cutting. Same for calling nsEscapeHTML2, I think, in order to not truncate HTML entities.
Attachment #277257 -
Flags: superreview?(bzbarsky)
Attachment #277257 -
Flags: review?(bzbarsky)
Attachment #277257 -
Flags: review-
Comment 4•17 years ago
|
||
If we want to do escaping after the cutting happens, I guess your method is better. TBH I'm not very good at this either :)
Updated•17 years ago
|
Flags: blocking1.9?
Comment 5•17 years ago
|
||
For what it's worth, this code is making very poor use of screen real estate. Even given the smallish size of my windows (about 1000px wide), and the huge amounts of horizontal whitespace the current design puts in (easily a third of the window width), only about half of the space for the filename is being used before we start truncating. It looks pretty silly to have those truncated filenames while there's a bunch of space available. Can we either significantly increase the truncation length, or at least make it resolution-dependent (maybe by moving the truncation into the script, though that may have performance issues) or something?
Assignee | ||
Comment 6•17 years ago
|
||
I think this basically solves the problem. But we can keep the bug open for more tweaks.
Attachment #277224 -
Attachment is obsolete: true
Attachment #277257 -
Attachment is obsolete: true
Attachment #277300 -
Flags: superreview?(bzbarsky)
Attachment #277300 -
Flags: review?(bzbarsky)
Comment 7•17 years ago
|
||
It doesn't really solve the problem I'm running into.... Do you want a separate bug on that?
Assignee | ||
Comment 8•17 years ago
|
||
Sure, a separate bug might be appropriate in order to keep different issues apart. In my book, the main problem here is that file extensions have been cut off.
Comment 9•17 years ago
|
||
Filed bug 393681.
Comment 10•17 years ago
|
||
Comment on attachment 277300 [details] [diff] [review] first attempt >Index: nsIndexedToHTML.cpp >+ if (NS_IS_LOW_SURROGATE(descriptionAffix.Last())) s/Last/First/ right? With that change, r+sr+a=bzbarsky
Attachment #277300 -
Flags: superreview?(bzbarsky)
Attachment #277300 -
Flags: superreview+
Attachment #277300 -
Flags: review?(bzbarsky)
Attachment #277300 -
Flags: review+
Attachment #277300 -
Flags: approval1.9+
Assignee | ||
Comment 11•17 years ago
|
||
yeah, must be First()
Attachment #277300 -
Attachment is obsolete: true
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Comment 12•17 years ago
|
||
netwerk/streamconv/converters/nsIndexedToHTML.cpp 1.83
Reporter | ||
Comment 13•17 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8pre) Gecko/2007082603 Minefield/3.0a8pre ID:2007082603 VERIFIED
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•17 years ago
|
Target Milestone: --- → mozilla1.9 M8
You need to log in
before you can comment on or make changes to this bug.
Description
•