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

Issue 23506021: Require confirmation for writable directory access. (Closed)

Created:
7 years, 3 months ago by Sam McNally
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@directory-permission-hack
Visibility:
Public.

Description

Require confirmation for writable directory access. Previously, an app could request just the fileSystem.write permission, followed by just the fileSystem.directory permission. This would prompt the user to allow write access to files and read-only access to directories, respectively. If the app were to later request both at the same time, this would allow write access to directories without further user confirmation. This change adds an implicit fileSystem.writeDirectory if both fileSystem.write and fileSystem.directory are requested at the same time. This requires the user to confirm write access to directories. BUG=148486 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221620

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -39 lines) Patch
M chrome/common/extensions/permissions/api_permission.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission_set.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission_set.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission_set_unittest.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set.cc View 1 2 chunks +13 lines, -16 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 2 chunks +21 lines, -23 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Sam McNally
7 years, 3 months ago (2013-09-03 06:21:43 UTC) #1
Matt Giuca
lgtm
7 years, 3 months ago (2013-09-03 08:24:22 UTC) #2
benwells
lgtm, but please wait to see what kalman say. kalman: i think we're trying to ...
7 years, 3 months ago (2013-09-03 11:38:54 UTC) #3
not at google - send to devlin
lgtm https://codereview.chromium.org/23506021/diff/3001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/23506021/diff/3001/chrome/common/extensions/api/_permission_features.json#newcode283 chrome/common/extensions/api/_permission_features.json:283: }], For the record: [{...}] in these files ...
7 years, 3 months ago (2013-09-03 17:07:04 UTC) #4
Sam McNally
https://codereview.chromium.org/23506021/diff/3001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/23506021/diff/3001/chrome/common/extensions/api/_permission_features.json#newcode283 chrome/common/extensions/api/_permission_features.json:283: }], On 2013/09/03 17:07:04, kalman wrote: > For the ...
7 years, 3 months ago (2013-09-04 00:21:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/23506021/37001
7 years, 3 months ago (2013-09-04 00:23:00 UTC) #6
not at google - send to devlin
lgtm https://codereview.chromium.org/23506021/diff/3001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/23506021/diff/3001/chrome/common/extensions/api/_permission_features.json#newcode283 chrome/common/extensions/api/_permission_features.json:283: }], On 2013/09/04 00:21:30, Sam McNally wrote: > ...
7 years, 3 months ago (2013-09-04 00:23:06 UTC) #7
commit-bot: I haz the power
Failed to trigger a try job on win_rel HTTP Error 400: Bad Request
7 years, 3 months ago (2013-09-04 02:19:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/23506021/59001
7 years, 3 months ago (2013-09-04 02:20:27 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=193457
7 years, 3 months ago (2013-09-04 16:41:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/23506021/59001
7 years, 3 months ago (2013-09-06 04:08:28 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 07:21:33 UTC) #12
Message was sent while issue was closed.
Change committed as 221620

Powered by Google App Engine
This is Rietveld 408576698