New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 815223 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

inconsistent drag vs. double-click behavior in Files app

Project Member Reported by semenzato@chromium.org, Feb 23 2018

Issue description

(This may be multiple bugs---feel free to split.)

On my chromebook, if I drag an extension-less file from the Files app to an empty tab, the file is opened as text.  But if click on it, I get the message "this file type is not supported".

If the file ends in .txt, both actions have the desired effect.

If the file ends with an unknown suffix, for instance .log, double-clicking invites me to pick an extension that can deal with that file type (which I don't really want to do).  Dragging the file into a tab navigates to about:blank.

My workaround is to rename files to .txt.  But if the file is mounted from opening a ZIP archive, first I have to copy it.

I am not sure how comparable this is, but on my Linux desktop, visiting an extension-less file URL opens the file as text, which is my preference anyway.
 
Cc: satorux@chromium.org

Comment 2 by derat@chromium.org, Feb 23 2018

Cc: derat@chromium.org
Owner: fukino@chromium.org
It seems like we attempted to support type-sniffing files at one point. I filed  issue 126863  long ago, which got duped into  issue 352250 , which was marked fixed in 2014. Comment #33 there indicates that we attempt to handle plain-text files. Maybe it regressed, or I'm misunderstanding. I also frequently need to extract log files from archives and add .txt extensions before I can double-click them to open them in a tab.

Comment 3 by sashab@chromium.org, Feb 24 2018

Labels: CrOS-FilesApp-FileIntents
Owner: ----
Status: Unconfirmed (was: Untriaged)

Comment 5 by sashab@chromium.org, Feb 28 2018

Labels: -CrOS-FilesApp-FileIntents CrOSFilesFeature-FileIntents
Status: Untriaged (was: Unconfirmed)
Observed in 67.0.3365.0:

Double click:
txtfile               | prompt: file type not supported
txtfile.log           | prompt: file type not supported
txtfile.txt           | open in new tab
test.zip:txtfile      | prompt: file type not supported
test.zip:txtfile.log  | prompt: file type not supported
test.zip:txtfile.txt  | open in new tab


Drag into tab:
txtfile               | open
txtfile.log           | open
txtfile.txt           | open
test.zip:txtfile      | about:blank
test.zip:txtfile.log  | about:blank
test.zip:txtfile.txt  | about:blank





Comment 7 by sashab@chromium.org, Mar 15 2018

Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)

Comment 8 by sashab@chromium.org, Mar 15 2018

Labels: Hotlist-GoodFirstBug
Owner: adanilo@chromium.org
Status: Assigned (was: Available)

Sign in to add a comment