| Summary: | Implement TCC checks in UserMediaPermissionRequestManagerProxy | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||
| Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer, youennf | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Local Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
youenn fablet
2020-10-09 00:52:44 PDT
Created attachment 410923 [details]
Patch
Created attachment 410924 [details]
Patch
Created attachment 410935 [details]
Patch
Comment on attachment 410935 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410935&action=review > Source/WebKit/UIProcess/Cocoa/UserMediaPermissionRequestManagerProxy.mm:155 > + auto completionHandler = requiresVideoTCCPrompt ? [request = makeRef(request), callback = WTFMove(callback)](bool isOK) mutable { > + if (!isOK) { > + callback(false); > + return; > + } > + requestAVCaptureAccessForMediaType(WTFMove(callback), AVMediaTypeVideo); > + } : WTFMove(callback); Very nice! Committed r268256: <https://trac.webkit.org/changeset/268256> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410935 [details]. |