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

Issue 2490183002: Filter webrtc::RTCStats by whitelist in surfacing them to Blink. (Closed)

Created:
4 years, 1 month ago by hbos_chromium
Modified:
4 years ago
Reviewers:
hta - Chromium, foolip
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Filter webrtc::RTCStats by whitelist in surfacing them to Blink. This ensures that we don't accidentally leak RTCStats dictionaries that are not ready to be exposed to the web, and makes it so that exposing a new dictionary requires a Chromium CL (not just WebRTC repo CLs). Note that the white list is not applied to members of whitelisted dictionaries and that all such members are exposed. BUG=chromium:627816 Committed: https://crrev.com/20033c03bd6c08920f93544110a263a13e256c2f Cr-Commit-Position: refs/heads/master@{#434501}

Patch Set 1 : Problem with static const char kType[] comparison #

Patch Set 2 : Whitelist backed up by std::set instead to avoid const char* equality problem #

Patch Set 3 : Fixed compile error #

Patch Set 4 : Fix test: WhitelistStatsForTesting to allow RTCTestStats in rtc_peer_connection_handler_unittest.cc #

Patch Set 5 : Make win compile: BLINK_PLATFORM_EXPORT and cpp file (also rebase /w master) #

Total comments: 2

Patch Set 6 : git cl format: {\n} -> {} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -18 lines) Patch
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/rtc_stats.h View 1 2 3 4 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc/rtc_stats.cc View 1 2 3 3 chunks +59 lines, -7 lines 0 comments Download
A content/renderer/media/webrtc/rtc_stats_unittest.cc View 1 1 chunk +48 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/exported/WebRTCStats.cpp View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCStats.h View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 65 (45 generated)
hbos_chromium
This shows the problem I'm facing with the rtc_stats.cc and rtc_stats_unittest.cc... If you don't CONTENT_EXPORT ...
4 years, 1 month ago (2016-11-10 11:10:13 UTC) #3
hbos_chromium
Please take a look, hta. I'm thinking that with chromium being built the way it ...
4 years, 1 month ago (2016-11-22 09:45:33 UTC) #6
hbos_chromium
On 2016/11/22 09:45:33, hbos_chromium wrote: > Please take a look, hta. > > I'm thinking ...
4 years, 1 month ago (2016-11-22 10:50:35 UTC) #13
hbos_chromium
Please take a look, hta
4 years, 1 month ago (2016-11-22 12:12:12 UTC) #16
hbos_chromium
And please take a look foolip
4 years ago (2016-11-24 12:18:50 UTC) #26
foolip
https://codereview.chromium.org/2490183002/diff/160001/third_party/WebKit/Source/platform/exported/WebRTCStats.cpp File third_party/WebKit/Source/platform/exported/WebRTCStats.cpp (right): https://codereview.chromium.org/2490183002/diff/160001/third_party/WebKit/Source/platform/exported/WebRTCStats.cpp#newcode9 third_party/WebKit/Source/platform/exported/WebRTCStats.cpp:9: WebRTCStatsReport::~WebRTCStatsReport() { Do you have other examples of where ...
4 years ago (2016-11-24 12:26:30 UTC) #27
foolip
https://msdn.microsoft.com/en-us/library/3tdb471s.aspx is the documentation for the compiler error, claims "An exported class was derived from ...
4 years ago (2016-11-24 12:33:50 UTC) #28
hbos_chromium
https://codereview.chromium.org/2490183002/diff/160001/third_party/WebKit/Source/platform/exported/WebRTCStats.cpp File third_party/WebKit/Source/platform/exported/WebRTCStats.cpp (right): https://codereview.chromium.org/2490183002/diff/160001/third_party/WebKit/Source/platform/exported/WebRTCStats.cpp#newcode9 third_party/WebKit/Source/platform/exported/WebRTCStats.cpp:9: WebRTCStatsReport::~WebRTCStatsReport() { On 2016/11/24 12:26:30, foolip wrote: > Do ...
4 years ago (2016-11-24 12:55:42 UTC) #29
hbos_chromium
On 2016/11/24 12:33:50, foolip wrote: > https://msdn.microsoft.com/en-us/library/3tdb471s.aspx is the documentation for > the compiler error, ...
4 years ago (2016-11-24 12:56:59 UTC) #30
hbos_chromium
On 2016/11/24 12:56:59, hbos_chromium wrote: > On 2016/11/24 12:33:50, foolip wrote: > > https://msdn.microsoft.com/en-us/library/3tdb471s.aspx is ...
4 years ago (2016-11-24 13:35:51 UTC) #35
hta - Chromium
lgtm This is my lgtm day. Note, however: content/ is still not Blink. Please s/Blink/Chrome/ ...
4 years ago (2016-11-24 16:22:34 UTC) #38
foolip
Can't say I understand the compile failure, but LGTM when you're satisfied. Might be worth ...
4 years ago (2016-11-25 10:19:30 UTC) #43
hbos_chromium
On 2016/11/25 10:19:30, foolip wrote: > Can't say I understand the compile failure, but LGTM ...
4 years ago (2016-11-25 10:44:37 UTC) #47
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/2490183002/160001
4 years ago (2016-11-25 10:45:27 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/312891)
4 years ago (2016-11-25 10:51:38 UTC) #52
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/2490183002/260001
4 years ago (2016-11-25 11:03:26 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/344742)
4 years ago (2016-11-25 13:47:10 UTC) #57
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/2490183002/260001
4 years ago (2016-11-25 13:49:24 UTC) #60
commit-bot: I haz the power
Committed patchset #6 (id:260001)
4 years ago (2016-11-25 14:47:33 UTC) #63
commit-bot: I haz the power
4 years ago (2016-11-25 14:49:31 UTC) #65
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/20033c03bd6c08920f93544110a263a13e256c2f
Cr-Commit-Position: refs/heads/master@{#434501}

Powered by Google App Engine
This is Rietveld 408576698