Bug 274730 - [GTK] WebRTC: getUserMedia fails with missing camera access in bubblewrap sandbox
Summary: [GTK] WebRTC: getUserMedia fails with missing camera access in bubblewrap san...
Status: RESOLVED DUPLICATE of bug 244004
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: GstWebRTC
  Show dependency treegraph
 
Reported: 2024-05-26 12:05 PDT by Byoungchan Lee
Modified: 2024-05-27 06:30 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Byoungchan Lee 2024-05-26 12:05:22 PDT
Steps to reproduce:
1. Build WebKitGTK from source with ENABLE_BUBBLEWRAP_SANDBOX=ON.
2. Run the built WebKitGTK application.
3. Connect a webcam to your system.
4. Open this URL: https://webrtc.github.io/samples/src/content/getusermedia/resolution/
5. Click on 'VGA' or 'HD' button.

Expected result:
A permission request dialog is displayed to grant camera access to the application.

Actual result:
The application doesn't request camera access. On standard output, the following message is printed: "Video capture was requested but no device was found amongst 0 devices".

Additional information:
Disabling bubblewrap sandbox (ENABLE_BUBBLEWRAP_SANDBOX=OFF) during WebKitGTK build resolves the issue. However, this might introduce other problems, but it's a different story.

Version:
$ git rev-parse --short HEAD
92bcd775f93e
Comment 1 Michael Catanzaro 2024-05-27 05:17:51 PDT
It probably tries to access the device directly (not allowed) rather than going through the camera portal (which is mandatory).

(Be aware you're going to run into a lot more problems than this if trying to use WebRTC. E.g. the sandbox will block network access, bug #244002.)
Comment 2 Philippe Normand 2024-05-27 06:30:25 PDT

*** This bug has been marked as a duplicate of bug 244004 ***