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

Issue 2643013002: Don't crash browser process when OK passed as error code in FSP API. (Closed)

Created:
3 years, 11 months ago by mtomasz
Modified:
3 years, 10 months ago
Reviewers:
benwells
CC:
chromium-reviews, extensions-reviews_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't crash browser process when OK passed as error code in FSP API. This CL fixes it by adding a guard to both custom bindings, and API implementation. TEST=Tested with a testing extension. BUG=682556 Review-Url: https://codereview.chromium.org/2643013002 Cr-Commit-Position: refs/heads/master@{#451711} Committed: https://chromium.googlesource.com/chromium/src/+/0891c24ebc475fb9b92c1d31a7e8d8e49a7de065

Patch Set 1 #

Total comments: 4

Patch Set 2 : Don't crash browser process when OK passed as error code in FSP API. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -2 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 7 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
mtomasz
@benwells: PTAL. Thanks.
3 years, 11 months ago (2017-01-19 07:57:21 UTC) #3
benwells
lgtm with a nit / question. sorry about the delay, I was on leave but ...
3 years, 10 months ago (2017-01-30 01:50:51 UTC) #8
mtomasz
https://codereview.chromium.org/2643013002/diff/1/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): https://codereview.chromium.org/2643013002/diff/1/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js#newcode369 chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js:369: verifyErrorForFailure(error); On 2017/01/30 01:50:50, benwells wrote: > Nit: should ...
3 years, 10 months ago (2017-02-21 05:25:59 UTC) #9
benwells
https://codereview.chromium.org/2643013002/diff/1/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): https://codereview.chromium.org/2643013002/diff/1/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js#newcode369 chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js:369: verifyErrorForFailure(error); On 2017/02/21 05:25:59, mtomasz wrote: > On 2017/01/30 ...
3 years, 10 months ago (2017-02-21 05:35:11 UTC) #10
mtomasz
https://codereview.chromium.org/2643013002/diff/1/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): https://codereview.chromium.org/2643013002/diff/1/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js#newcode369 chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js:369: verifyErrorForFailure(error); On 2017/02/21 05:35:11, benwells wrote: > On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 05:56:43 UTC) #11
benwells
cool, thanks. lgtm
3 years, 10 months ago (2017-02-21 05:58:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2643013002/20001
3 years, 10 months ago (2017-02-21 06:02:47 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 06:37:04 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0891c24ebc475fb9b92c1d31a7e8...

Powered by Google App Engine
This is Rietveld 408576698