New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 874322 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
OOO until 4th Feb
Closed: Sep 3
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug
Team-Security-UX



Sign in to add a comment

Add metric to measure the number of calls to contentSetting.set with embedded origins

Project Member Reported by raymes@chromium.org, Aug 15

Issue description

Permission delegation aims to remove the notion of a primary and secondary origin from most permissions UI surfaces. However currently the contentSettings extensions API still allows these kind of combinations to be set. We should measure usage and consider deprecating some permissions in order to simplify the UI and code.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Aug 16

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/06d6aef7859cffc2f2331ca055acd41d4be1ad81

commit 06d6aef7859cffc2f2331ca055acd41d4be1ad81
Author: Raymes Khoury <raymes@chromium.org>
Date: Thu Aug 16 06:40:15 2018

Measure the number of embedded content settings set by extensions

This adds a metric which measures the number of times an extension sets
a content setting that has an embedded exception. This means that the
primary and secondary pattern are different.

We plan to deprecate this type of usage for permissions. If usage of
this feature is low for other types of settings we may also consider
deprecating those.

Bug: 802945, 874322 
Change-Id: I5076603eb462cda4495538022c4c3a93c8894519
Reviewed-on: https://chromium-review.googlesource.com/1174082
Reviewed-by: Steven Holte <holte@chromium.org>
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Martin Šrámek <msramek@chromium.org>
Commit-Queue: Raymes Khoury <raymes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583566}
[modify] https://crrev.com/06d6aef7859cffc2f2331ca055acd41d4be1ad81/chrome/browser/extensions/api/content_settings/content_settings_api.cc
[modify] https://crrev.com/06d6aef7859cffc2f2331ca055acd41d4be1ad81/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc
[add] https://crrev.com/06d6aef7859cffc2f2331ca055acd41d4be1ad81/chrome/test/data/extensions/api_test/content_settings/embeddedsettingsmetric/manifest.json
[add] https://crrev.com/06d6aef7859cffc2f2331ca055acd41d4be1ad81/chrome/test/data/extensions/api_test/content_settings/embeddedsettingsmetric/test.html
[add] https://crrev.com/06d6aef7859cffc2f2331ca055acd41d4be1ad81/chrome/test/data/extensions/api_test/content_settings/embeddedsettingsmetric/test.js
[modify] https://crrev.com/06d6aef7859cffc2f2331ca055acd41d4be1ad81/tools/metrics/histograms/histograms.xml

Cc: gov...@chromium.org
Labels: Merge-Request-69 OS-Chrome OS-Linux OS-Mac OS-Windows
+govind

Any chance this could be merged to 69? It's a 10-line patch for gathering metrics (the rest of the code is a test). It landed on Friday and haven't seen any crash spikes on Canary.
Project Member

Comment 3 by sheriffbot@chromium.org, Aug 20

Labels: -Merge-Request-69 Merge-Review-69 Hotlist-Merge-Review
This bug requires manual review: M69 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), kariahda@(iOS), cindyb@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Thank you  raymes@.

This is P2, could you pls justify this merge to M69 this late in release cycle? How safe and how critical it is?
It's very safe but not critical. It would just help us get metrics quicker for a feature we'd like to launch in M71. I understand if it's too late in the cycle though.
Labels: -Merge-Review-69 Merge-Rejected-69
Thank you raymes@.
We're trying to minimize the merges for M69 at this point, so rejecting merge to M69 as this is not critical based on comment #5. Pls do let me know if there is any concern here. 
Status: Fixed (was: Assigned)

Sign in to add a comment