fix: also pass securityOrigin to media permissions request handler (#31357)
This commit is contained in:
parent
a751845afc
commit
b2a2b077da
3 changed files with 29 additions and 0 deletions
|
@ -140,6 +140,7 @@ void WebContentsPermissionHelper::RequestMediaAccessPermission(
|
|||
media_types->Append("video");
|
||||
}
|
||||
details.SetList("mediaTypes", std::move(media_types));
|
||||
details.SetString("securityOrigin", request.security_origin.spec());
|
||||
|
||||
// The permission type doesn't matter here, AUDIO_CAPTURE/VIDEO_CAPTURE
|
||||
// are presented as same type in content_converter.h.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue