Bug 248265 - Fail to resume the AudioContext after user gesture 'touchend'
Summary: Fail to resume the AudioContext after user gesture 'touchend'
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-23 00:25 PST by Lixin
Modified: 2022-11-30 00:26 PST (History)
5 users (show)

See Also:


Attachments
The static page to reproduce the bug (1.64 KB, text/html)
2022-11-23 00:25 PST, Lixin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>