Bug 221213

Summary: Refactor SpeechRecognitionPermissionManager to use code of UserMediaPermissionRequestManagerProxy
Product: WebKit Reporter: Sihui Liu <sihui_liu>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Sihui Liu 2021-02-01 09:33:31 PST
...
Comment 1 Sihui Liu 2021-02-01 09:41:07 PST
Currently in UserMediaPermissionRequestManagerProxy::grantRequest, we don't expose deviceID, which is done in UserMediaPermissionRequestManagerProxy ::finishGrantingRequest for user media requests.
Comment 2 youenn fablet 2021-02-01 10:21:55 PST
(In reply to Sihui Liu from comment #1)
> Currently in UserMediaPermissionRequestManagerProxy::grantRequest, we don't
> expose deviceID, which is done in UserMediaPermissionRequestManagerProxy
> ::finishGrantingRequest for user media requests.

When we have a successful getUserMedia call, we expose microphone devices as part of enumerateDevices.
Given we show the microphone prompt, I am wondering whether we should do the same.
If we in the future allow to do recognition on a track, that probably makes sense to do so.
In any case, that might have an impact on how we do refactoring.
Comment 3 Radar WebKit Bug Importer 2021-02-08 09:34:13 PST
<rdar://problem/74099964>