mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
558d46bd36
If client script wants to commit composition string per input, it sometimes use the following script. ``` let input = document.getElementById('input'); input.addEventListener('input', () => { input.blur(); input.focus(); }); ``` Since `blur` will commit composition string, this script can commit text. But since Gecko has an optimization for this situation, focus won't be lost completely. Although GeckoView synchronizes Java text and selection with Gecko text when getting focus, this sample may be failed due to timing issue. `blur` tries to commit string, but result is never returned since focus is lost as temporary (although text is finally committed in Gecko.). Then, GeckoView are waiting for result that is never returned forever, So this synchronization is failed. When getting focus again, we should synchronize it at force. Differential Revision: https://phabricator.services.mozilla.com/D80147 |
||
---|---|---|
.. | ||
android | ||
locales | ||
.eslintrc.js |