| Summary: | Fail speech recognition when page is muted for audio capture | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sihui Liu <sihui_liu> | ||||||||||
| Component: | New Bugs | Assignee: | Sihui Liu <sihui_liu> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer, youennf | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Sihui Liu
2020-12-23 16:41:55 PST
Created attachment 416734 [details]
Patch
Created attachment 416973 [details]
Patch
Created attachment 416975 [details]
Patch
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 ...) (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 ...) Created attachment 417013 [details]
Patch for landing
Committed r271154: <https://trac.webkit.org/changeset/271154> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417013 [details]. |