<?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>247614</bug_id>
          
          <creation_ts>2022-11-08 06:09:44 -0800</creation_ts>
          <short_desc>Only require a &quot;transient&quot; user activation for Web Audio rendering</short_desc>
          <delta_ts>2022-11-17 15:28:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Audio</component>
          <version>Safari 16</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=248061</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Spura">david.spura</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>cdumez</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1911010</commentid>
    <comment_count>0</comment_count>
    <who name="David Spura">david.spura</who>
    <bug_when>2022-11-08 06:09:44 -0800</bug_when>
    <thetext>After registering processor to AudioWorklet, its process method does not get called.

Please try here: https://1006044.playcode.io/

Source of the sample: https://playcode.io/1006044

Mentioned sample works in firefox, chrome and edge.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912586</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-15 06:10:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/102364692&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912699</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-11-15 13:26:43 -0800</bug_when>
    <thetext>Safari has stricter use gesture requirements than other browsers. We don&apos;t allow starting rendering without a user gesture. I see the demo asks the user to click a button to start rendering but my bet is that it actually starts the rendering asynchronously after getting the click.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912701</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-11-15 13:29:29 -0800</bug_when>
    <thetext>Yes, I mean the click handler calls an async function which does a:
```
await e.audioWorklet.addModule(n),
```

Before it connects the node to the graph. By that time, the user gesture is lost in Safari. I wish we could relax the user gesture requirement a bit (e.g. only require a &quot;recent&quot; gesture) but I usually get push back from our media team when I suggest that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912715</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-11-15 14:16:08 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6529</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912794</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-15 22:29:15 -0800</bug_when>
    <thetext>Committed 256721@main (7cc4b4216132): &lt;https://commits.webkit.org/256721@main&gt;

Reviewed commits have been landed. Closing PR #6529 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>