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

Issue 2966613002: [Extensions] Fix platforms for privacy.websites.protectedContentEnabled (Closed)

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

Description

[Extensions] Fix platforms for privacy.websites.protectedContentEnabled privacy.websites.protectedContentEnabled is enabled per-platform, and the platform list includes "cros" and "cros touch". But the determination of the platforms in binding.js includes "chromeos" and "chromeos touch". As a result, the protectedContentEnabled feature is never actually available on a CrOS platform (despite being documented as such). It appears that, since it's addition in https://crrev.com/cc3a5c8ca42579c0f9f710c18f51c566b4c75e86, this has been unavailable on ChromeOS: See https://chromium.googlesource.com/chromium/src/+/cc3a5c8ca42579c0f9f710c18f51c566b4c75e86/chrome/renderer/resources/extensions/schema_generated_bindings.js#318 and https://chromium.googlesource.com/chromium/src/+/cc3a5c8ca42579c0f9f710c18f51c566b4c75e86/chrome/common/extensions/api/privacy.json#88 where the patch was added. Update the platforms listed to be those that are used in the features system. Also update the browser test to correctly check the privacy.websites.protectedContentEnabled feature on all platforms, as well as expanding it to test setting preferences. BUG=746064 Review-Url: https://codereview.chromium.org/2966613002 Cr-Commit-Position: refs/heads/master@{#487931} Committed: https://chromium.googlesource.com/chromium/src/+/392484cfd0bb44ee1606071fbe39c23b5934798f

Patch Set 1 #

Patch Set 2 : Enable on CrOS #

Patch Set 3 : typos #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 4

Patch Set 6 : msramek's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -42 lines) Patch
M chrome/common/extensions/api/privacy.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/preference/standard/test.js View 1 2 3 4 5 1 chunk +69 lines, -41 lines 0 comments Download

Messages

Total messages: 42 (30 generated)
Devlin
Hey Mike, it looks like you added this way back in https://chromium.googlesource.com/chromium/src/+/cc3a5c8ca42579c0f9f710c18f51c566b4c75e86, but as best ...
3 years, 5 months ago (2017-06-30 00:58:06 UTC) #7
Mike West
It should have worked cross platform. :/ +msramek@ who will have opinions about privacy implications.
3 years, 5 months ago (2017-06-30 08:59:05 UTC) #9
msramek
I'm not sure what I'm looking at. It's certainly better to update the documentation to ...
3 years, 5 months ago (2017-06-30 09:38:30 UTC) #10
Devlin
On 2017/06/30 09:38:30, msramek (slow) wrote: > I'm not sure what I'm looking at. > ...
3 years, 5 months ago (2017-07-05 15:49:09 UTC) #11
Devlin
On 2017/07/05 15:49:09, Devlin wrote: > On 2017/06/30 09:38:30, msramek (slow) wrote: > > I'm ...
3 years, 5 months ago (2017-07-14 01:15:22 UTC) #12
msramek
My preference is that reality matches docs. That's certainly better long term. In short term, ...
3 years, 5 months ago (2017-07-14 09:06:29 UTC) #13
Devlin
On 2017/07/14 09:06:29, msramek (slow) wrote: > My preference is that reality matches docs. That's ...
3 years, 5 months ago (2017-07-19 00:11:21 UTC) #27
msramek
LGTM, thanks! https://codereview.chromium.org/2966613002/diff/80001/chrome/test/data/extensions/api_test/preference/standard/test.js File chrome/test/data/extensions/api_test/preference/standard/test.js (right): https://codereview.chromium.org/2966613002/diff/80001/chrome/test/data/extensions/api_test/preference/standard/test.js#newcode54 chrome/test/data/extensions/api_test/preference/standard/test.js:54: navigator.userAgent.indexOf('CrOS') == -1) { nit: String.prototype.includes() https://codereview.chromium.org/2966613002/diff/80001/chrome/test/data/extensions/api_test/preference/standard/test.js#newcode69 ...
3 years, 5 months ago (2017-07-19 00:44:07 UTC) #30
Devlin
https://codereview.chromium.org/2966613002/diff/80001/chrome/test/data/extensions/api_test/preference/standard/test.js File chrome/test/data/extensions/api_test/preference/standard/test.js (right): https://codereview.chromium.org/2966613002/diff/80001/chrome/test/data/extensions/api_test/preference/standard/test.js#newcode54 chrome/test/data/extensions/api_test/preference/standard/test.js:54: navigator.userAgent.indexOf('CrOS') == -1) { On 2017/07/19 00:44:07, msramek (slow) ...
3 years, 5 months ago (2017-07-19 17:43:23 UTC) #33
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/2966613002/100001
3 years, 5 months ago (2017-07-19 17:43:58 UTC) #37
lazyboy
lgtm
3 years, 5 months ago (2017-07-19 17:54:19 UTC) #38
commit-bot: I haz the power
3 years, 5 months ago (2017-07-19 18:47:04 UTC) #42
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/392484cfd0bb44ee1606071fbe39...

Powered by Google App Engine
This is Rietveld 408576698