[Webkit-unassigned] [Bug 257241] New: [Cocoa] Call [AVCaptureDevice ensureServerConnection] when new extensions are made to the GPU Process
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 23 16:47:12 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=257241
Bug ID: 257241
Summary: [Cocoa] Call [AVCaptureDevice ensureServerConnection]
when new extensions are made to the GPU Process
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bfulgham at webkit.org
CC: kkinnunen at apple.com
Our current code only calls [AVCaptureDevice ensureServerConnection] the first time we extend the sandbox. This can lead to problems if the user visits a site that only needs Microphone access (for example), and then visits a site that needs Camera access. Because the camera-related extensions are only recognized by the video capture system when [AVCaptureDevice ensureServiceConnection] is called, the fact that we called it before the new sandbox extensions were in place mean we never activate the relevant features.
To fix this, we should simply call [AVCaptureDevice ensureServerConnection] any time we extend the sandbox. I have confirmed with the relevant teams that this call is low-cost (performance wise), and is not harmful to call repeatedly for things that have already been activated.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230523/6ffa5372/attachment.htm>
More information about the webkit-unassigned
mailing list