RESOLVED FIXED Bug 220133
Fail speech recognition when page is muted for audio capture
https://bugs.webkit.org/show_bug.cgi?id=220133
Summary Fail speech recognition when page is muted for audio capture
Sihui Liu
Reported 2020-12-23 16:41:55 PST
...
Attachments
Patch (18.65 KB, patch)
2020-12-23 16:49 PST, Sihui Liu
ews-feeder: commit-queue-
Patch (29.53 KB, patch)
2021-01-04 22:58 PST, Sihui Liu
no flags
Patch (29.53 KB, patch)
2021-01-05 00:08 PST, Sihui Liu
no flags
Patch for landing (27.44 KB, patch)
2021-01-05 09:45 PST, Sihui Liu
no flags
Sihui Liu
Comment 1 2020-12-23 16:49:36 PST
Radar WebKit Bug Importer
Comment 2 2020-12-30 16:42:12 PST
Sihui Liu
Comment 3 2021-01-04 22:58:37 PST
Sihui Liu
Comment 4 2021-01-05 00:08:43 PST
youenn fablet
Comment 5 2021-01-05 02:08:06 PST
Comment on attachment 416975 [details] Patch Looks good overall. Some style improvements below. View in context: https://bugs.webkit.org/attachment.cgi?id=416975&action=review > Source/WebKit/ChangeLog:11 > + 1. when page is muted, mute audio capture source used for speech recognition audion on the page. This will s/audion/audio/ > Source/WebKit/UIProcess/UserMediaProcessManager.cpp:73 > + } I am not sure we need to create a HashSet here. We could either add a SpeechRecognitionPermissionManager::muteCaptureExceptIn(WebPageProxy&) or rely on WebProcessProxy::globalPageMap() and remove UserMediaProcessManager::muteCaptureMediaStreamsExceptIn > Source/WebKit/UIProcess/WebProcessProxy.cpp:1779 > + speechRecognitionServer->mute(); I would write it as if (auto ...)
Sihui Liu
Comment 6 2021-01-05 09:37:29 PST
(In reply to youenn fablet from comment #5) > Comment on attachment 416975 [details] > Patch > > Looks good overall. > Some style improvements below. Thanks for review! > > View in context: > https://bugs.webkit.org/attachment.cgi?id=416975&action=review > > > Source/WebKit/ChangeLog:11 > > + 1. when page is muted, mute audio capture source used for speech recognition audion on the page. This will > > s/audion/audio/ > > > Source/WebKit/UIProcess/UserMediaProcessManager.cpp:73 > > + } > > I am not sure we need to create a HashSet here. > We could either add a > SpeechRecognitionPermissionManager::muteCaptureExceptIn(WebPageProxy&) or > rely on WebProcessProxy::globalPageMap() and remove > UserMediaProcessManager::muteCaptureMediaStreamsExceptIn Okay, removing UserMediaProcessManager::muteCaptureMediaStreamsExceptIn and add it in WebProcessProxy. > > > Source/WebKit/UIProcess/WebProcessProxy.cpp:1779 > > + speechRecognitionServer->mute(); > > I would write it as if (auto ...)
Sihui Liu
Comment 7 2021-01-05 09:45:12 PST
Created attachment 417013 [details] Patch for landing
EWS
Comment 8 2021-01-05 10:16:29 PST
Committed r271154: <https://trac.webkit.org/changeset/271154> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417013 [details].
Note You need to log in before you can comment on or make changes to this bug.