RESOLVED FIXED 168756
[MediaStream iOS] Allow web process sandbox to be extended for media capture
https://bugs.webkit.org/show_bug.cgi?id=168756
Summary [MediaStream iOS] Allow web process sandbox to be extended for media capture
Eric Carlson
Reported 2017-02-22 17:19:19 PST
As on macOS, access to audio & video capture devices from the WebProcess require sandbox extensions. As we do on macOS, generate extensions on dynamically when access is required instead of changing the sandbox permanently.
Attachments
Proposed patch. (2.33 KB, patch)
2017-02-22 17:23 PST, Eric Carlson
no flags
Archive of layout-test-results from ews116 for mac-elcapitan (1.85 MB, application/zip)
2017-02-22 18:34 PST, Build Bot
no flags
Eric Carlson
Comment 1 2017-02-22 17:23:03 PST
Created attachment 302470 [details] Proposed patch.
Radar WebKit Bug Importer
Comment 2 2017-02-22 17:23:43 PST
Build Bot
Comment 3 2017-02-22 18:34:45 PST
Comment on attachment 302470 [details] Proposed patch. Attachment 302470 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3175927 New failing tests: fast/dom/timer-throttling-hidden-page-non-nested.html
Build Bot
Comment 4 2017-02-22 18:34:48 PST
Created attachment 302477 [details] Archive of layout-test-results from ews116 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Eric Carlson
Comment 5 2017-02-22 20:14:31 PST
(In reply to comment #3) > Comment on attachment 302470 [details] > Proposed patch. > > Attachment 302470 [details] did not pass mac-debug-ews (mac): > Output: http://webkit-queues.webkit.org/results/3175927 > > New failing tests: > fast/dom/timer-throttling-hidden-page-non-nested.html This failure is not related, the patch only changes the iOS sandbox.
Brent Fulgham
Comment 6 2017-02-22 20:36:39 PST
Comment on attachment 302470 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=302470&action=review r=me > Source/WebKit2/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:110 > +(with-filter (extension "com.apple.webkit.camera") Nit: I don't think you need "with-filter" on iOS, since all support versions of iOS will have this declared in the default sandbox "language".
WebKit Commit Bot
Comment 7 2017-02-23 07:15:04 PST
Comment on attachment 302470 [details] Proposed patch. Clearing flags on attachment: 302470 Committed r212883: <http://trac.webkit.org/changeset/212883>
WebKit Commit Bot
Comment 8 2017-02-23 07:15:09 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.