DescriptionDon't auto allow access to media devices unless a the security origin of the requester is the same as its ancestors.
This adds a field in MediaStreamRequest to verify that the security origin of the requester is the same as its ancestors.
This field have to be set on the UI-thread and is therefore set just before sending the request to the UI.
BUG=448378
TEST= please see bug report
Committed: https://crrev.com/ac8f9263b91c2b8b5c5ae7aa71af34c46f50d22d
Cr-Commit-Position: refs/heads/master@{#313904}
Patch Set 1 #Patch Set 2 : Fix existing unittests. Added HasSameOrigin to FrameTreeNode #Patch Set 3 : Fix browsertests #Patch Set 4 : Fix win compile. #
Total comments: 4
Patch Set 5 : Addressed comments and removed unrelated changes. #Patch Set 6 : Fix problem with that the ui_request_ was used for state updates. #
Total comments: 2
Patch Set 7 : Fixed nit. #Messages
Total messages: 22 (6 generated)
|