<?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>209580</bug_id>
          
          <creation_ts>2020-03-25 19:44:38 -0700</creation_ts>
          <short_desc>enumerateDevices returns different value by calling more than twice</short_desc>
          <delta_ts>2020-03-26 00:13:34 -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>Safari 13</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>209417</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yuji Sugiura">y.sugiura.0316</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1634181</commentid>
    <comment_count>0</comment_count>
    <who name="Yuji Sugiura">y.sugiura.0316</who>
    <bug_when>2020-03-25 19:44:38 -0700</bug_when>
    <thetext>`navigator.mediaDevices.enumerateDevices()` seems not to return same value for the first time calling and after another.

# How to reproduce

- open web page(no matter which page is) and DevTools(Console)
- call `await navigator.mediaDevices.enumerateDevices()`
  - check the result has `audioinput` and `videoinput` devices
- call `await navigator.mediaDevices.enumerateDevices()` again
  - expect the same result, but it returns `audioinput` and `audioinput`(no `videoinput`)

If you got permission by calling `getUserMedia()` first, it works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634186</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-03-25 19:56:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/60901421&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1634228</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2020-03-26 00:13:34 -0700</bug_when>
    <thetext>Thanks for the report Yuji, this is now fixed in WebKit ToT.

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

    </bug>

</bugzilla>