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

Issue 2903803004: [Extensions Bindings] Fix content settings validation (Closed)

Created:
3 years, 7 months ago by Devlin
Modified:
3 years, 6 months ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Fix content settings validation Fix two issues in content settings validation: a) Properly validate the `set` value against the schema in JS bindings. This wasn't being done before, and could lead to validation failures on the browser side. b) Move deprecated checks before `set` value validation in both native and JS bindings. This is necessary since the accepted values for the deprecated settings are restricted to a single value (the default setting). BUG=653596 Review-Url: https://codereview.chromium.org/2903803004 Cr-Commit-Position: refs/heads/master@{#475696} Committed: https://chromium.googlesource.com/chromium/src/+/00d8fa1c1d356a6e98bfffccf62463f1450d4432

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -34 lines) Patch
M chrome/renderer/resources/extensions/content_setting.js View 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/test/data/extensions/api_test/content_settings/standard/test.js View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/native_bindings/extension/background.js View 1 1 chunk +3 lines, -11 lines 0 comments Download
M extensions/renderer/content_setting.cc View 3 chunks +16 lines, -15 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
Devlin
Hey folks, mind taking a look? https://codereview.chromium.org/2903803004/diff/1/chrome/renderer/resources/extensions/content_setting.js File chrome/renderer/resources/extensions/content_setting.js (left): https://codereview.chromium.org/2903803004/diff/1/chrome/renderer/resources/extensions/content_setting.js#oldcode64 chrome/renderer/resources/extensions/content_setting.js:64: validate([details, callback], rawSetSchema); ...
3 years, 7 months ago (2017-05-26 01:36:01 UTC) #8
jbroman
I don't understand (b) in the description. There are a limited number of accepted values ...
3 years, 7 months ago (2017-05-26 18:43:08 UTC) #11
Devlin
On 2017/05/26 18:43:08, jbroman wrote: > I don't understand (b) in the description. There are ...
3 years, 7 months ago (2017-05-26 18:48:58 UTC) #13
jbroman
lgtm
3 years, 7 months ago (2017-05-26 18:59:40 UTC) #14
lazyboy
lgtm
3 years, 6 months ago (2017-05-30 17:07:15 UTC) #15
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/2903803004/20001
3 years, 6 months ago (2017-05-30 19:10:40 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/278843) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-30 19:19:18 UTC) #19
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/2903803004/20001
3 years, 6 months ago (2017-05-30 20:13:43 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 23:53:19 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/00d8fa1c1d356a6e98bfffccf624...

Powered by Google App Engine
This is Rietveld 408576698