Bug 187981

Summary: [macOS] PluginProcess needs TCC entitlements for media capture
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit2Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, ap, bfulgham, cdumez, commit-queue, eric.carlson, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=185526
Bug Depends on: 185526    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Brent Fulgham 2018-07-24 17:16:33 PDT
The changes needed in Bug 185526 are also needed for the plugin process, or else the UIProcess (e.g., Safari) is not able to pass the user's camera/microphone access permission to the plugin process.

This patch has the following changes:

1. Rename "WebContent-OSX-restricted.entitlements" to "WebContent-or-Plugin-OSX-restricted.entitlements"
2. Rename "process-webcontent-entitlements.sh" to "process-webcontent-or-plugin-entitlements.sh"
3. Add a run-script step to the Plugin.64 and Plugin.32 builds to add the relevant entitlements.
4. Silence some Flash plugin sandbox exceptions triggered after activating the camera.
Comment 1 Brent Fulgham 2018-07-24 17:24:32 PDT
<rdar://problem/42433634>
Comment 2 Brent Fulgham 2018-07-24 17:29:16 PDT
Created attachment 345729 [details]
Patch
Comment 3 Chris Dumez 2018-07-25 08:43:33 PDT
Comment on attachment 345729 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2018-07-25 08:47:50 PDT
Comment on attachment 345729 [details]
Patch

Clearing flags on attachment: 345729

Committed r234195: <https://trac.webkit.org/changeset/234195>
Comment 5 WebKit Commit Bot 2018-07-25 08:47:51 PDT
All reviewed patches have been landed.  Closing bug.