Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 221a548250e219261961676c35d2fe99706c021f
      
https://github.com/WebKit/WebKit/commit/221a548250e219261961676c35d2fe99706c021f
  Author: Sihui Liu <sihui_...@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@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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to