Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Issue 516763002: Fix userVisibility for files in ChromeOS filesystems. (Closed)

Created:
6 years, 3 months ago by pwnall-personal
Modified:
6 years, 3 months ago
Reviewers:
tkent, mtomasz, sof, tzik
CC:
blink-reviews, kinuko+fileapi, nhiroki, mtomasz
Project:
blink
Visibility:
Public.

Description

Fix userVisibility for files in ChromeOS filesystems. In Web applications, the Filesystem API is used to create sandboxed filesystems. Files in these filesystems should never be shown in a filepicker. ChromeOS supports a few special filesystems (Downloads, Gallery) where the files should be shown in filepickers. This change fixes the userVisibility property for File instances created from such filesystems. BUG=398366 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181530

Patch Set 1 : #

Patch Set 2 : Added test for the FileSystemCallbacks change. #

Patch Set 3 : Followed feedback and pulled out common logic in separate function. #

Patch Set 4 : Fixed incorrect parameter name in DOMFileSystemSync. #

Patch Set 5 : Removed FileSystemCallbacksTest.cpp #

Patch Set 6 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -32 lines) Patch
M Source/core/fileapi/File.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/fileapi/File.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/DOMFileSystemBase.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/filesystem/DOMFileSystemBase.cpp View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
A Source/modules/filesystem/DOMFileSystemBaseTest.cpp View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
M Source/modules/filesystem/DOMFileSystemSync.cpp View 1 2 3 4 5 1 chunk +1 line, -14 lines 0 comments Download
M Source/modules/filesystem/FileSystemCallbacks.cpp View 1 2 1 chunk +1 line, -13 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (4 generated)
pwnall-personal
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-28 04:38:06 UTC) #1
pwnall-personal
costan@gmail.com changed reviewers: + mtomasz@chromium.org, tkent@chromium.org
6 years, 3 months ago (2014-08-28 08:33:09 UTC) #2
pwnall-personal
After some digging around, I think this is the right missing piece neeeded to fix ...
6 years, 3 months ago (2014-08-28 08:40:18 UTC) #3
mtomasz
mtomasz@chromium.org changed reviewers: - mtomasz@chromium.org
6 years, 3 months ago (2014-08-29 00:43:55 UTC) #4
mtomasz
mtomasz@chromium.org changed reviewers: + mtomasz@chromium.org
6 years, 3 months ago (2014-08-29 00:44:53 UTC) #5
mtomasz
@pwnall: I'm not familiar with Blink code base. Please find a better reviewer.
6 years, 3 months ago (2014-08-29 00:44:53 UTC) #6
mtomasz
mtomasz@chromium.org changed reviewers: + sigbjornf@opera.com
6 years, 3 months ago (2014-08-29 01:07:13 UTC) #7
mtomasz
Adding sigbjornf@ per git blame.
6 years, 3 months ago (2014-08-29 01:08:28 UTC) #8
pwnall-personal
On 2014/08/29 00:44:53, mtomasz wrote: > @pwnall: I'm not familiar with Blink code base. Please ...
6 years, 3 months ago (2014-08-29 03:43:05 UTC) #9
tkent
+tzik I don't understand behavior of neither File System API nor Files.app, and can't evaluate ...
6 years, 3 months ago (2014-09-01 02:45:39 UTC) #11
tzik
On 2014/08/29 03:43:05, pwnall wrote: > On 2014/08/29 00:44:53, mtomasz wrote: > > @pwnall: I'm ...
6 years, 3 months ago (2014-09-01 05:14:05 UTC) #12
pwnall-personal
I added the userVisibility flag to handle situations like https://crbug.com/360308 In this case, the <input ...
6 years, 3 months ago (2014-09-02 23:58:59 UTC) #13
tzik
On 2014/09/02 23:58:59, pwnall wrote: > I added the userVisibility flag to handle situations like ...
6 years, 3 months ago (2014-09-03 07:57:09 UTC) #14
pwnall-personal
On 2014/09/03 07:57:09, tzik wrote: > Well OK, that will be a lower hanging improvement. ...
6 years, 3 months ago (2014-09-03 18:22:15 UTC) #15
tkent
> Kent-san, can I get a LGTM for the File API change, please? Please add ...
6 years, 3 months ago (2014-09-04 04:46:29 UTC) #16
pwnall-personal
On 2014/09/04 04:46:29, tkent wrote: > > Kent-san, can I get a LGTM for the ...
6 years, 3 months ago (2014-09-04 22:11:12 UTC) #17
pwnall-personal
On 2014/09/04 22:11:12, pwnall wrote: > I'll look into adding a test for the FileSystemCallbacks ...
6 years, 3 months ago (2014-09-05 09:12:45 UTC) #18
tkent
On 2014/09/05 09:12:45, pwnall wrote: > On 2014/09/04 22:11:12, pwnall wrote: > > I'll look ...
6 years, 3 months ago (2014-09-05 09:21:26 UTC) #19
pwnall-personal
Thank you for the quick response, Kent-san! On 2014/09/05 09:21:26, tkent wrote: > Also, you ...
6 years, 3 months ago (2014-09-05 09:35:40 UTC) #20
tkent
On 2014/09/05 09:35:40, pwnall wrote: > This would go in DOMFileSystemBase, right? Yeah, I think ...
6 years, 3 months ago (2014-09-05 09:37:55 UTC) #21
pwnall-personal
Thank you for your advice, Kent-san! The code looks much cleaner, and I was able ...
6 years, 3 months ago (2014-09-05 10:20:16 UTC) #22
pwnall-personal
On 2014/09/05 10:20:16, pwnall wrote: > At this point, I don't think that testing at ...
6 years, 3 months ago (2014-09-05 11:02:46 UTC) #23
tkent
On 2014/09/05 10:20:16, pwnall wrote: > Thank you for your advice, Kent-san! The code looks ...
6 years, 3 months ago (2014-09-05 11:19:22 UTC) #24
pwnall-personal
Thank you very much for your patience and guidance, Kent-san! Can you please take another ...
6 years, 3 months ago (2014-09-05 14:06:14 UTC) #25
tkent
lgtm
6 years, 3 months ago (2014-09-07 21:30:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/costan@gmail.com/516763002/100001
6 years, 3 months ago (2014-09-07 21:31:40 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/14622)
6 years, 3 months ago (2014-09-07 21:37:20 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/costan@gmail.com/516763002/120001
6 years, 3 months ago (2014-09-08 01:13:13 UTC) #32
commit-bot: I haz the power
6 years, 3 months ago (2014-09-08 01:13:40 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as 181530

Powered by Google App Engine
This is Rietveld 408576698