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

Issue 2872913003: Do not pass the origin to MediaDevicesDispatcherHost. (Closed)

Created:
3 years, 7 months ago by Guido Urdaneta
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, chfremer+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mfoltz+watch_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not pass the origin to MediaDevicesDispatcherHost. Instead get the origin from the corresponding RenderFrameHost. Unique origins are now treated like any other insecure origin. BUG=720025 Review-Url: https://codereview.chromium.org/2872913003 Cr-Commit-Position: refs/heads/master@{#471699} Committed: https://chromium.googlesource.com/chromium/src/+/a72075abe9fe56104e33384f5876daa42a946a42

Patch Set 1 : fix #

Total comments: 5

Patch Set 2 : Add tests with unique origin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -302 lines) Patch
M content/browser/bad_message.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/media_devices_permission_checker.h View 2 chunks +14 lines, -22 lines 0 comments Download
M content/browser/media/media_devices_permission_checker.cc View 7 chunks +8 lines, -13 lines 0 comments Download
M content/browser/renderer_host/media/audio_output_authorization_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/media_devices_dispatcher_host.h View 5 chunks +24 lines, -22 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_dispatcher_host.cc View 10 chunks +86 lines, -91 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_dispatcher_host_unittest.cc View 1 6 chunks +20 lines, -56 lines 0 comments Download
M content/common/media/media_devices.mojom View 4 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/media/media_devices_event_dispatcher.h View 3 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/media/media_devices_event_dispatcher.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M content/renderer/media/media_devices_event_dispatcher_unittest.cc View 3 chunks +13 lines, -26 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 4 chunks +3 lines, -16 lines 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 4 chunks +7 lines, -13 lines 0 comments Download
M content/renderer/pepper/pepper_device_enumeration_host_helper.h View 3 chunks +0 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_device_enumeration_host_helper.cc View 4 chunks +12 lines, -12 lines 0 comments Download
M content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_device_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_device_manager.cc View 3 chunks +1 line, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (17 generated)
Guido Urdaneta
Hi, PTAL. mkwst@chromium.org: Please review IPC and related changes in content/browser hbos@chromium.org: Please review content/renderer/media ...
3 years, 7 months ago (2017-05-10 07:41:20 UTC) #9
Mike West
Thanks! https://codereview.chromium.org/2872913003/diff/20001/content/browser/media/media_devices_permission_checker.cc File content/browser/media/media_devices_permission_checker.cc (right): https://codereview.chromium.org/2872913003/diff/20001/content/browser/media/media_devices_permission_checker.cc#newcode39 content/browser/media/media_devices_permission_checker.cc:39: GURL origin = frame_host->GetLastCommittedOrigin().GetURL(); I know this isn't ...
3 years, 7 months ago (2017-05-10 08:52:22 UTC) #10
Guido Urdaneta
https://codereview.chromium.org/2872913003/diff/20001/content/browser/media/media_devices_permission_checker.cc File content/browser/media/media_devices_permission_checker.cc (right): https://codereview.chromium.org/2872913003/diff/20001/content/browser/media/media_devices_permission_checker.cc#newcode39 content/browser/media/media_devices_permission_checker.cc:39: GURL origin = frame_host->GetLastCommittedOrigin().GetURL(); On 2017/05/10 08:52:22, Mike West ...
3 years, 7 months ago (2017-05-10 09:38:01 UTC) #11
Guido Urdaneta
https://codereview.chromium.org/2872913003/diff/20001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc File content/browser/renderer_host/media/media_devices_dispatcher_host.cc (right): https://codereview.chromium.org/2872913003/diff/20001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc#newcode48 content/browser/renderer_host/media/media_devices_dispatcher_host.cc:48: if (!origin_for_testing.unique()) Note also that in unit tests, |frame_host| ...
3 years, 7 months ago (2017-05-10 11:09:41 UTC) #12
Mike West
On 2017/05/10 at 09:38:01, guidou wrote: > Note that I removed special tests for unique ...
3 years, 7 months ago (2017-05-11 07:46:11 UTC) #13
Guido Urdaneta
jochen@chromium.org: Can you RS?
3 years, 7 months ago (2017-05-11 09:53:18 UTC) #15
Guido Urdaneta
Friendly ping :)
3 years, 7 months ago (2017-05-12 14:59:16 UTC) #20
hbos_chromium
content/renderer/media stampy LGTM, relying on other reviewers for implications of removing security_origin
3 years, 7 months ago (2017-05-12 15:11:33 UTC) #21
jochen (gone - plz use gerrit)
lgtm
3 years, 7 months ago (2017-05-15 05:35:39 UTC) #22
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/2872913003/40001
3 years, 7 months ago (2017-05-15 07:42:46 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 08:36:34 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/a72075abe9fe56104e33384f5876...

Powered by Google App Engine
This is Rietveld 408576698