Speech input: Send text to correct element even if focus has changed
https://bugs.webkit.org/show_bug.cgi?id=76071
Reviewed by Steve Block.
Source/WebCore:
Make sure that the text from speech input ends up in the correct
element even if focus has changed since the user clicked on it.
Test: fast/speech/change-focus.html
* html/shadow/TextControlInnerElements.cpp:
(WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
LayoutTests:
Add test to make sure that the text from speech input ends up in the
correct element even if focus has moved away after the user clicked on it.
* fast/speech/change-focus-expected.txt: Added.
* fast/speech/change-focus.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104821
268f45cc-cd09-0410-ab3c-
d52691b4dbfc