<?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>227036</bug_id>
          
          <creation_ts>2021-06-15 11:44:12 -0700</creation_ts>
          <short_desc>REGRESSION(Monterey): TCC prompt on opening few websites using WKWebView on macOS 12.0</short_desc>
          <delta_ts>2021-08-20 08:40:45 -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>WebKit Local Build</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>229238</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="Dinesh Kumar Vyas">dinodev90</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1769888</commentid>
    <comment_count>0</comment_count>
    <who name="Dinesh Kumar Vyas">dinodev90</who>
    <bug_when>2021-06-15 11:44:12 -0700</bug_when>
    <thetext>WKWebView (latest WebKit 612.1.20) asking for Microphone access permission (TCC prompt) on first run (just after navigation commit) on macOS 12.0?
Tested several times by clearing privacy settings tccutil reset Microphone.

But when I tried on google.com, apple.com, there were no prompt.
And when I tested same on macOS 11.0, there was no prompt and everything was normal as expected.

How to reproduce -

Create a small macOS app with WKWebView (MiniBrowser can also be used) and try to load any website from bellow -

or bellow sites:
https://edition.cnn.com/
https://slack.com/intl/en-in/
https://web.whatsapp.com/
https://www.amazon.com/
https://whatismyipaddress.com/
and even when I open custom url scheme</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769895</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-15 11:57:37 -0700</bug_when>
    <thetext>&lt;rdar://problem/79354230&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782455</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-06 01:32:35 -0700</bug_when>
    <thetext>I tried with MiniBrowser and was not able to repro.
Normally, WebKit will only trigger a prompt in case the page calls getUserMedia.

Would you be able to take a sysdiagnose while reproducing the error and noting the time of reproduction, then send it privately to me (youenn@apple.com)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1785842</commentid>
    <comment_count>3</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2021-08-20 08:40:45 -0700</bug_when>
    <thetext>This was fixed by bug #229238.

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

    </bug>

</bugzilla>