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

Issue 690757 link

Starred by 3 users

Issue metadata

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



Sign in to add a comment

Hide Media Views from save as dialog in Camera app

Project Member Reported by dhadd...@chromium.org, Feb 10 2017

Issue description

Opt in to ARC++ 
Open Files app
Open the builtin Camera app
Take a picture 
Try to save the picture

At this point the media views are listed in the save as dialog on the left but you cannot save to them

Note: the save as dialog for Chrome doesn't list the media views 
 

Comment 1 by nya@chromium.org, Feb 10 2017

Status: Started (was: Untriaged)
Thanks for catching! I'll take a look.

Comment 2 by nya@chromium.org, Feb 10 2017

Cc: mtomasz@chromium.org hirono@chromium.org nya@chromium.org fukino@chromium.org oka@chromium.org
Owner: ----
Status: Available (was: Started)
+some files.app folks

It seems camera app shows read-only volumes in "save file as" dialog; including zip archive and media views. Maybe we should filter out those volumes since users can't save to those volumes anyway.

Screenshot 2017-02-10 at 1.17.22 PM.png
163 KB View Download
Cc: y...@chromium.org

Comment 4 by fukino@chromium.org, Feb 10 2017

Cc: yamaguchi@chromium.org
Weifang,
Can we hide all read-only volumes (including media view, zip archive, write-protected SD, etc...) in save dialog?

I see Mac OS Finder shows read-only volumes even in save dialog. But I'm not sure if it is beneficial for users.
That makes sense to me. I agree we should only allow for navigation to write-able directories in the Save dialog.

Question - I noticed that when I try to save an image from the Chrome browser, only Drive and Downloads are available to Save to. My Dropbox directory (which should be writeable) is not included. Is there a reason for this difference?

Comment 6 by fukino@chromium.org, Feb 10 2017

Oh, sorry. I forgot the current behavior.
In save dialog, we show volumes which support native paths (Downloads, SD, etc...) and Google Drive.
Context: see https://bugs.chromium.org/p/chromium/issues/detail?id=581984#c7

We already hide FSP volumes in save dialog, so hiding media view in the same manner should be sufficient to fix this issue, I think.
Ah, thanks for the additional context. Let's move forward with this approach. Can you assign to the right person to work on this?

Comment 8 by fukino@chromium.org, Feb 11 2017

Owner: nya@chromium.org
Status: Assigned (was: Available)
Maybe nya@ can handle this if you have cycles?
Please reassign this back to me or yamaguchi@ if it's going to involve design changes in Files app.

Comment 9 by nya@chromium.org, Feb 13 2017

Status: Started (was: Assigned)
Sure, I'll take a look.

Comment 11 by nya@chromium.org, Feb 14 2017

Labels: Merge-Request-57
Status: Fixed (was: Started)
Project Member

Comment 12 by sheriffbot@chromium.org, Feb 15 2017

Labels: -Merge-Request-57 Hotlist-Merge-Approved Merge-Approved-57
Your change meets the bar and is auto-approved for M57. Please go ahead and merge the CL to branch 2987 manually. Please contact milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), ketakid@(cros), govind@(desktop)

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

Comment 13 by bugdroid1@chromium.org, Feb 15 2017

Labels: -merge-approved-57 merge-merged-2987
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/762d9204793e5906a8c94fbf27ba97d808b3808c

commit 762d9204793e5906a8c94fbf27ba97d808b3808c
Author: Shuhei Takahashi <nya@chromium.org>
Date: Wed Feb 15 05:56:26 2017

Hide read-only volumes in "Save As" dialogs.

BUG= chromium:690757 
TEST=Save as dialog in Camera app does not show zip/media view volumes.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2695613002
Cr-Commit-Position: refs/heads/master@{#450247}
(cherry picked from commit 59a09c0b0ce14dd00ad1cfca4ecc37ce8f27b271)

Review-Url: https://codereview.chromium.org/2699583002 .
Cr-Commit-Position: refs/branch-heads/2987@{#518}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[modify] https://crrev.com/762d9204793e5906a8c94fbf27ba97d808b3808c/ui/file_manager/audio_player/js/audio_player.js
[modify] https://crrev.com/762d9204793e5906a8c94fbf27ba97d808b3808c/ui/file_manager/file_manager/foreground/js/file_manager.js
[modify] https://crrev.com/762d9204793e5906a8c94fbf27ba97d808b3808c/ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js
[modify] https://crrev.com/762d9204793e5906a8c94fbf27ba97d808b3808c/ui/file_manager/gallery/js/gallery.js
[modify] https://crrev.com/762d9204793e5906a8c94fbf27ba97d808b3808c/ui/file_manager/video_player/js/video_player.js

Status: Verified (was: Fixed)
Status: Assigned (was: Verified)
Issue still exists on 9202.64.0 / 57.0.2987.146 and TOT

Reopening the bug.
 Issue 709382  has been merged into this issue.

Comment 17 by nya@chromium.org, Apr 10 2017

Status: Started (was: Assigned)
Hmm, strange. I'm taking a look.

Comment 18 by nya@chromium.org, Apr 10 2017

It seems the problem about Camera app was not fixed by comment 13. My commit fixed the case where a save-as dialog was requested, but Camera app uses an open-directory dialog [1]. Since Chrome File System API [2] does not provide a way to express whether the chosen directory will be used for writing or reading, we can't decide whether to show read only file systems like media views.

To properly fix the camera app case we need to extend Chrome API [2] to allow apps to specify whether the opened directory is used for reading or writing. Files app team and PMs, WDYT?

<off-topic>
Then it is mysterious how I verified the commit in comment 13... I remember I surely verified with Camera app. There might be another bug. Actually today while I'm testing media views for this bug, I found an issue that media views are not shown even if ARC is enabled. Maybe I encountered similar issue when I verified the fix.
</off-topic>

[1] https://chromium.googlesource.com/apps/camera/+/master/src/js/views/gallery_base.js#152
[2] https://developer.chrome.com/apps/fileSystem#method-chooseEntry

We used to have a save dialog but around IIRC it was changed a year ago or so. The open dialog is confusing so as a workaround we were planning to show a "Save" dialog for single elements, and "Open" for more than one selected. Then we would fix the issue at least when users select only one picture.


Are the media view volumes read only? If so, then per documentation we shouldn't be showing them in the picker if the app has the filesystem writable permission. However, it feels that the API is not designed well. I can think of plenty of cases where this wouldn't work.


So, personally +1 for extending this API if it's causing a lot of user pain. Otherwise we could show a dialog in Camera app that the selected destination is read only and ask to choose another.

Comment 20 by nya@chromium.org, Apr 10 2017

Media view volumes are read-only.

Yup, extending the API is a "proper" fix but it will be non-trivial work (including updating API spec). Maybe we can handle the case in Camera app. Actually no error is shown when the user selects media view volumes as destination, which is bad.

Similar complaints in issue 694113

Comment 22 by nya@chromium.org, Apr 24 2017

Status: Available (was: Started)
Releasing this bug since I'm busy for other tasks. Please feel free to grab.

Labels: -M-57 M-64
Labels: -M-64 M-65
Owner: ----
Labels: -M-65 M-66
Labels: -M-66 M-67 CrOS-FilesApp-ARC
<files-triage>
Labels: -CrOS-FilesApp-ARC CrOSFilesFeature-ARC
Labels: -M-67 M-68

Comment 29 by y...@chromium.org, Mar 1 2018

Cc: henryhsu@chromium.org
Labels: -M-68
Owner: weifangsun@chromium.org
Status: Assigned (was: Available)
Weifang to find owner for this.
Labels: M-69
Labels: -M-69 M-70

Comment 33 by oka@chromium.org, Jun 27 2018

Cc: -oka@chromium.org
Status: WontFix (was: Assigned)
issue 816363 makes this bug obsolete.

Sign in to add a comment