<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>274730</bug_id>
          
          <creation_ts>2024-05-26 12:05:22 -0700</creation_ts>
          <short_desc>[GTK] WebRTC: getUserMedia fails with missing camera access in bubblewrap sandbox</short_desc>
          <delta_ts>2024-05-27 06:30:25 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>244004</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>235885</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Byoungchan Lee">byoungchan.lee</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>philn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2037939</commentid>
    <comment_count>0</comment_count>
    <who name="Byoungchan Lee">byoungchan.lee</who>
    <bug_when>2024-05-26 12:05:22 -0700</bug_when>
    <thetext>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 &apos;VGA&apos; or &apos;HD&apos; button.

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

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

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

Version:
$ git rev-parse --short HEAD
92bcd775f93e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038029</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-05-27 05:17:51 -0700</bug_when>
    <thetext>It probably tries to access the device directly (not allowed) rather than going through the camera portal (which is mandatory).

(Be aware you&apos;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.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038041</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-05-27 06:30:25 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 244004 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>