[webkit-changes] [WebKit/WebKit] 221a54: Cherry-pick 252432.767 at safari-7614-branch (06416c9...
Sihui
noreply at github.com
Mon Dec 19 15:36:52 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 221a548250e219261961676c35d2fe99706c021f
https://github.com/WebKit/WebKit/commit/221a548250e219261961676c35d2fe99706c021f
Author: Sihui Liu <sihui_liu at apple.com>
Date: 2022-12-19 (Mon, 19 Dec 2022)
Changed paths:
M Source/WebCore/Modules/speech/SpeechRecognitionCaptureSourceImpl.cpp
M Source/WebCore/Modules/speech/SpeechRecognitionCaptureSourceImpl.h
Log Message:
-----------
Cherry-pick 252432.767 at safari-7614-branch (06416c92c6dc). rdar://101283979
SpeechRecognitionCaptureSourceImpl::pullSamplesAndCallDataCallback may pull from wrong data source
rdar://101283979
Reviewed by Chris Dumez.
m_dataSource may be updated in audioSamplesAvailable before pullSamplesAndCallDataCallback runs, so
pullSamplesAndCallDataCallback should ensure dataSource is not changed.
* Source/WebCore/Modules/speech/SpeechRecognitionCaptureSourceImpl.cpp:
(WebCore::SpeechRecognitionCaptureSourceImpl::pullSamplesAndCallDataCallback):
(WebCore::SpeechRecognitionCaptureSourceImpl::audioSamplesAvailable):
(WebCore::SpeechRecognitionCaptureSourceImpl::updateDataSource): Deleted.
(): Deleted.
* Source/WebCore/Modules/speech/SpeechRecognitionCaptureSourceImpl.h:
Canonical link: https://commits.webkit.org/252432.767@safari-7614-branch
Canonical link: https://commits.webkit.org/258101@main
More information about the webkit-changes
mailing list