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

Unified Diff: content/public/common/media_stream_request.cc

Issue 795703003: Don't auto allow access to media devices unless a the security origin of the requester is the same … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/common/media_stream_request.cc
diff --git a/content/public/common/media_stream_request.cc b/content/public/common/media_stream_request.cc
index b338b759433ac11dd84f51559a822e4e67631b2c..030779c0eb2fdacf994ad0ebf2a4e6659c808da7 100644
--- a/content/public/common/media_stream_request.cc
+++ b/content/public/common/media_stream_request.cc
@@ -87,6 +87,7 @@ MediaStreamRequest::MediaStreamRequest(
int render_process_id,
int render_frame_id,
int page_request_id,
+ const std::string& tab_capture_device_id,
const GURL& security_origin,
bool user_gesture,
MediaStreamRequestType request_type,
@@ -97,13 +98,15 @@ MediaStreamRequest::MediaStreamRequest(
: render_process_id(render_process_id),
render_frame_id(render_frame_id),
page_request_id(page_request_id),
+ tab_capture_device_id(tab_capture_device_id),
security_origin(security_origin),
user_gesture(user_gesture),
request_type(request_type),
requested_audio_device_id(requested_audio_device_id),
requested_video_device_id(requested_video_device_id),
audio_type(audio_type),
- video_type(video_type) {
+ video_type(video_type),
+ all_ancestors_have_same_origin(false) {
}
MediaStreamRequest::~MediaStreamRequest() {}

Powered by Google App Engine
This is Rietveld 408576698