New issue
Advanced search Search tips

Issue 763359 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Open file upload dialog, click on date column, files are sorted by string, not by date value

Reported by ctengc...@gmail.com, Sep 8 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0

Steps to reproduce the problem:
1. Open a file upload dialog using html5 input=file
2. Select a local directory where there are lots of file
3. Click on any date column

What is the expected behavior?
Files should be sorted by date's time value

What went wrong?
It seems files are sorted by date column's serialized string

Did this work before? N/A 

Chrome version: M61  Channel: n/a
OS Version: OS X 10.12
Flash Version: 

Safari does it right, & firefox seems also doing it correct
 
Labels: Needs-Triage-M61
Please provide a sample URL where you encountered the problem for the ease of repro.
This bug does not relate to any specific url, any html with <input
type=file> will do.
But the real problem is, in order to repro the bug, you need to prepare a
lot of files, whose `lastModified` date or `created` date is intensely
distributed across the time.
Then Mac's builtin date serialization mechanism will cast these attributes
to "今天 00:43" or “昨天 13:21” or "2017年9月8日", chromium's file upload open
dialog will sort files by these string values, which is not the expected.

2017-09-09 2:44 GMT+08:00 ligim… via monorail <
monorail+v2.2642961223@chromium.org>:

Comment 3 by ctengc...@gmail.com, Sep 13 2017

Note:Where does the “无日期” group column name come from???
file-open-dialog.png
226 KB View Download
Labels: Needs-Feedback
This seems to be an issue with the file picker. We don't actually have much control over it. Can you take some screenshots of the filepicker with Chrome vs. with Safari showing the differences and appropriate behavior?

Comment 5 by ctengc...@gmail.com, Sep 14 2017

Sorry i missed this, but I remember Safari is no problem, but i can't make
screenshots now(now at about 09:00, chrome and safari seem to be both
consistent).

I guess the problem may be due to the time when the file is
downloaded(00:00~03:00?), so i need another time to verify.

But i just found another problem: When i had downloaded a file named
.....pdf.download, & changed its filename suffix to pdf(remove .download),
but then when i opened the file select dialog in Chrome, the dialog still
displayed the old filename. While Safari is OK.

So i guess maybe there is some bug in the Chrome's file select dialog
code(Although it used the Mac system's, but there may be some settings not
correctly set?)

2017-09-14 4:43 GMT+08:00 erikc… via monorail <
monorail+v2.3185994615@chromium.org>:
Project Member

Comment 6 by sheriffbot@chromium.org, Sep 14 2017

Cc: erikc...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "erikchen@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by ctengc...@gmail.com, Sep 15 2017

Update: I have just found Safari's file upload dialog also has the “无日期” group column name. So the wierd thing is, why it appears, and when it disappears.

:-)

Comment 8 by shrike@chromium.org, Sep 16 2017

Status: WontFix (was: Unconfirmed)
[mac bug triage] The Mac file picker control handles the sort order of the files it displays. If you click a column header you can change what it sorts by (name, creation date, etc.).

Sign in to add a comment