WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
221457
Enable audio capture for speech recognition in GPUProcess
https://bugs.webkit.org/show_bug.cgi?id=221457
Summary
Enable audio capture for speech recognition in GPUProcess
youenn fablet
Reported
2021-02-05 02:28:16 PST
Enable audio capture for speech recognition in GPUProcess
Attachments
Patch
(25.95 KB, patch)
2021-02-05 02:44 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2021-02-05 02:44:40 PST
Created
attachment 419381
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2021-02-05 05:06:07 PST
<
rdar://problem/74021657
>
Sihui Liu
Comment 3
2021-02-05 10:32:26 PST
***
Bug 221452
has been marked as a duplicate of this bug. ***
EWS
Comment 4
2021-02-05 10:35:43 PST
commit-queue failed to commit
attachment 419381
[details]
to WebKit repository. To retry, please set cq+ flag again.
Sihui Liu
Comment 5
2021-02-05 11:58:16 PST
Comment on
attachment 419381
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=419381&action=review
Nice! Was trying to add a SpeechRecognitionRealtimeMediaSourceManager to GPU process and messaging between GPU process and UI process; that works but requires more changes.
> Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp:191 > m_sandboxExtensionForTCCD = SandboxExtension::create(WTFMove(sandboxHandleForTCCD)); > if (!m_sandboxExtensionForTCCD) > - LOG_ERROR("Failed to create sandbox extension for tccd"); > + RELEASE_LOG_ERROR(Media, "Failed to create sandbox extension for tccd"); > else > m_sandboxExtensionForTCCD->consume(); > > m_sandboxExtensionForMicrophone = SandboxExtension::create(WTFMove(sandboxHandleForMicrophone)); > if (!m_sandboxExtensionForMicrophone) > - LOG_ERROR("Failed to create sandbox extension for microphone"); > + RELEASE_LOG_ERROR(Media, "Failed to create sandbox extension for microphone");
Should we also avoid granting sandbox extension to web process if capture is about to happen in GPU process?
youenn fablet
Comment 6
2021-02-05 12:12:45 PST
(In reply to Sihui Liu from
comment #5
)
> Comment on
attachment 419381
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=419381&action=review
> > Nice! Was trying to add a SpeechRecognitionRealtimeMediaSourceManager to GPU > process and messaging between GPU process and UI process; that works but > requires more changes. > > > Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp:191 > > m_sandboxExtensionForTCCD = SandboxExtension::create(WTFMove(sandboxHandleForTCCD)); > > if (!m_sandboxExtensionForTCCD) > > - LOG_ERROR("Failed to create sandbox extension for tccd"); > > + RELEASE_LOG_ERROR(Media, "Failed to create sandbox extension for tccd"); > > else > > m_sandboxExtensionForTCCD->consume(); > > > > m_sandboxExtensionForMicrophone = SandboxExtension::create(WTFMove(sandboxHandleForMicrophone)); > > if (!m_sandboxExtensionForMicrophone) > > - LOG_ERROR("Failed to create sandbox extension for microphone"); > > + RELEASE_LOG_ERROR(Media, "Failed to create sandbox extension for microphone"); > > Should we also avoid granting sandbox extension to web process if capture is > about to happen in GPU process?
Sounds good, will do that as a follow-up if you don't beat me to it. Will land this change so that I can try landing enabling audio capture in GPU Process.
EWS
Comment 7
2021-02-05 12:27:25 PST
Committed
r272434
: <
https://trac.webkit.org/changeset/272434
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 419381
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug