Bug 248265

Summary: Fail to resume the AudioContext after user gesture 'touchend'
Product: WebKit Reporter: Lixin <timelyeee>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, jer.noble, marcosc, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
The static page to reproduce the bug none

Description Lixin 2022-11-23 00:25:15 PST
Created attachment 463688 [details]
The static page to reproduce the bug

Behavior in Chrome (if known): Same
Behavior in Firefox (if known): Same

Video and audio issue. Once add listener for 'touchend', as it will resume the AudioContext when 'touchend'. Yet when we touch and slide, the 'touchend' event was triggered but the audio context cannot be resumed somehow.

## Flash or HTML5?  

HTML5


## What steps will reproduce the problem?
(1) Open the page with mobile browser, or use devtool responsive util to make the touch events work.
(2) Open the console.
(3) Slide

## What is the expected result?

AudioContext will resume successfully.

## What is the actual result?

AudioContext cannot resume due to the safety policy, it can only be resumed with 'touch as click'.
Comment 1 Sam Sneddon [:gsnedders] 2022-11-23 04:09:55 PST
c.f. https://html.spec.whatwg.org/multipage/interaction.html#activation-triggering-input-event says it should happen with any touchend
Comment 2 Lixin 2022-11-25 00:23:29 PST
(In reply to Sam Sneddon [:gsnedders] from comment #1)
> c.f.
> https://html.spec.whatwg.org/multipage/interaction.html#activation-
> triggering-input-event says it should happen with any touchend

Yes, but it didn't happen for AudioContext
Comment 3 Radar WebKit Bug Importer 2022-11-30 00:26:17 PST
<rdar://problem/102802035>