When camera or microphone access has been granted by the user, have the UI process create a sandbox extension for "com.apple.tccd", and send it to the WebContent process.
<rdar://problem/57330176>
Yes! A much better idea than the current blanket allow.
Created attachment 383891 [details] Patch
Created attachment 383895 [details] Patch
Created attachment 384645 [details] Patch
Comment on attachment 384645 [details] Patch Thanks for reviewing!
Comment on attachment 384645 [details] Patch Clearing flags on attachment: 384645 Committed r253011: <https://trac.webkit.org/changeset/253011>
All reviewed patches have been landed. Closing bug.
Reopening to attach new patch.
Created attachment 384724 [details] Patch
Uploaded patch to fix assertion on older versions of macOS.
Comment on attachment 384724 [details] Patch Clearing flags on attachment: 384724 Committed r253059: <https://trac.webkit.org/changeset/253059>
I have the following logs on a debug ToT build under MacOS: Could not create a 'com.apple.tccd' sandbox extension
(In reply to youenn fablet from comment #14) > I have the following logs on a debug ToT build under MacOS: Could not create > a 'com.apple.tccd' sandbox extension Thanks, I will have a look :)
Created attachment 384851 [details] Patch
Comment on attachment 384851 [details] Patch Clearing flags on attachment: 384851 Committed r253130: <https://trac.webkit.org/changeset/253130>