<?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>230830</bug_id>
          
          <creation_ts>2021-09-27 07:26:17 -0700</creation_ts>
          <short_desc>iOS 15 WKWebview getUserMedia does not return working MediaStream</short_desc>
          <delta_ts>2021-09-27 09:05:03 -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>WebRTC</component>
          <version>Other</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>230479</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darius">darius.chris.k</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1797447</commentid>
    <comment_count>0</comment_count>
    <who name="Darius">darius.chris.k</who>
    <bug_when>2021-09-27 07:26:17 -0700</bug_when>
    <thetext>In a simple app which only calls navigator.mediaDevices.getUserMedia and sets the resulting stream on a video element. The following error shows up whenever getUserMedia is called:

2021-09-27 15:11:28.279138+0100 HelloCordova[1108:514247] Could not create a &apos;com.apple.tccd&apos; sandbox extension

Could not create a &apos;com.apple.tccd&apos; sandbox extension
2021-09-27 15:11:28.279245+0100 HelloCordova[1108:514247] [WebRTC] Unable to create com.apple.tccd sandbox extension
The correct info.plist entries are added for camera/mic.

The media device permission dialog shows and is allowed (still shows if permissions were previously granted, and show as granted in the OS private settings).
A MediaStream is a live audio track and a video track is still returned, but setting it on a video element doesn&apos;t do anything, neither can the stream be sent over a PeerConnection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797448</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-09-27 07:37:30 -0700</bug_when>
    <thetext>Thanks for the report Darius, this might be bug 230479.
To workaround the issue until bug 230479 ships, you might need to update your custom scheme URL to include a domain name instead of having it empty.
If that is not bug 230479, could you send me a sysdiagnose privately (youenn@apple.com)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797449</commentid>
    <comment_count>2</comment_count>
    <who name="Darius">darius.chris.k</who>
    <bug_when>2021-09-27 07:41:40 -0700</bug_when>
    <thetext>Thanks for the reply Youenn, concur that it is most likely the bug you mentioned as this is in a Cordova app, which uses some cdv:// custom url I suspect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797496</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-09-27 09:05:03 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>