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

Issue 1578263006: Add metrics for usage of permission features from iframes in blink (Closed)

Created:
4 years, 11 months ago by raymes
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, mlamouri+watch-blink_chromium.org, mvanouwerkerk+watch_chromium.org, Peter Beverloo, rwlbuis, sof, timvolodine, tommyw+watchlist_chromium.org, toyoshim+midi_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add metrics for usage of permission features from cross-origin iframes in blink This CL adds metrics to measure the usage of features that require permissions in Chrome when they are used in cross-origin iframes only. In particular we only want to count an iframe if it doesn't have scripting access into the top level document. A new UseCounter::countCrossOriginIframe function has been added which will only count this type of usage. Note that this intends to count cases when a site tries to use an API whether or not the permission is granted by the user. BUG=444744 Committed: https://crrev.com/fe356a2d22a8bf2590ce54d2c9c35cbc8ad0f819 Cr-Commit-Position: refs/heads/master@{#371756}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 11

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -5 lines) Patch
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/PointerLockController.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/Geolocation.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578263006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578263006/20001
4 years, 11 months ago (2016-01-13 06:21:00 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-13 07:25:46 UTC) #4
raymes
Hey guys, PTAL. I'd like to try to land this before branch point to get ...
4 years, 11 months ago (2016-01-13 23:02:28 UTC) #7
Timothy Loh
On 2016/01/13 23:02:28, raymes wrote: > Hey guys, > > PTAL. I'd like to try ...
4 years, 11 months ago (2016-01-14 02:05:42 UTC) #9
mlamouri (slow - plz ping)
Didn't we want to count cross origin iframes?
4 years, 11 months ago (2016-01-14 14:37:48 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578263006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578263006/140001
4 years, 11 months ago (2016-01-18 04:19:27 UTC) #12
raymes
On 2016/01/14 14:37:48, Mounir Lamouri wrote: > Didn't we want to count cross origin iframes? ...
4 years, 11 months ago (2016-01-18 04:21:06 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/160613)
4 years, 11 months ago (2016-01-18 05:38:27 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578263006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578263006/160001
4 years, 11 months ago (2016-01-18 05:55:32 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-18 07:16:48 UTC) #19
mlamouri (slow - plz ping)
Looks good. I still have a few comments below. Could you also update the description ...
4 years, 11 months ago (2016-01-19 17:54:49 UTC) #22
raymes
Thanks Mounir https://codereview.chromium.org/1578263006/diff/160001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/1578263006/diff/160001/third_party/WebKit/Source/core/dom/Element.cpp#newcode3044 third_party/WebKit/Source/core/dom/Element.cpp:3044: UseCounter::countCrossOriginIframe(document(), UseCounter::ElementRequestPointerLockIframe); On 2016/01/19 17:54:48, Mounir Lamouri ...
4 years, 11 months ago (2016-01-20 00:13:12 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578263006/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578263006/220001
4 years, 11 months ago (2016-01-20 00:16:46 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-20 01:52:37 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578263006/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578263006/240001
4 years, 11 months ago (2016-01-20 06:30:40 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-20 08:43:26 UTC) #34
mlamouri (slow - plz ping)
Regarding notifications permissions, I would tend to think that it would be better to record ...
4 years, 11 months ago (2016-01-21 13:53:18 UTC) #35
raymes
https://codereview.chromium.org/1578263006/diff/160001/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp File third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp (right): https://codereview.chromium.org/1578263006/diff/160001/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp#newcode128 third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp:128: UseCounter::countCrossOriginIframe(*document, UseCounter::GetUserMediaSecureOriginIframe); On 2016/01/21 13:53:18, Mounir Lamouri wrote: > ...
4 years, 11 months ago (2016-01-27 06:57:51 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1578263006/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1578263006/260001
4 years, 11 months ago (2016-01-27 07:00:04 UTC) #39
commit-bot: I haz the power
Committed patchset #11 (id:260001)
4 years, 11 months ago (2016-01-27 08:22:04 UTC) #40
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 08:23:16 UTC) #42
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/fe356a2d22a8bf2590ce54d2c9c35cbc8ad0f819
Cr-Commit-Position: refs/heads/master@{#371756}

Powered by Google App Engine
This is Rietveld 408576698