зеркало из https://github.com/mozilla/gecko-dev.git
d7fa9ea462
Currently, `mozInlineSpellChecker` handles events in the default group. This means that the listener may not run if web app stops the propagation. For keeping the event listener order as far as possible, this patch changes to listen to the event at capturing phase in the system group (editor handles the events at bubbling phase in the system group). Additionally, it listens to `keypress` events for handling caret/selection changes. However, they should be handled at `keydown` because those keys are not printable. Therefore, this patch changes to listen to `keydown` events, but this could change the race between running the scheduled spellcheck and following `keypress` event which is dispatched only for chrome code and C++ event listeners. However, this may not change it actually because the race is changed only when the following `keypress` event delays too much. https://searchfox.org/mozilla-central/rev/2eebd6e256fa0355e08421265e57ee1307836d92/extensions/spellcheck/src/mozInlineSpellChecker.cpp#503-504 Differential Revision: https://phabricator.services.mozilla.com/D126635 |
||
---|---|---|
.. | ||
de-DE | ||
en-AU | ||
en-GB | ||
.eslintrc.js | ||
bug678842_subframe.html | ||
bug717433_subframe.html | ||
bug1200533_subframe.html | ||
bug1204147_subframe.html | ||
bug1204147_subframe2.html | ||
chrome.ini | ||
mochitest.ini | ||
spellcheck.js | ||
test_async_UpdateCurrentDictionary.html | ||
test_bug338427.html | ||
test_bug366682.html | ||
test_bug432225.html | ||
test_bug484181.html | ||
test_bug596333.html | ||
test_bug636465.html | ||
test_bug678842.html | ||
test_bug697981.html | ||
test_bug717433.html | ||
test_bug1100966.html | ||
test_bug1154791.html | ||
test_bug1200533.html | ||
test_bug1204147.html | ||
test_bug1205983.html | ||
test_bug1209414.html | ||
test_bug1219928.html | ||
test_bug1365383.html | ||
test_bug1368544.html | ||
test_bug1418629.html | ||
test_bug1497480.html | ||
test_bug1602526.html | ||
test_nsIEditorSpellCheck_ReplaceWord.html | ||
test_spellcheck_after_pressing_navigation_key.html | ||
test_suggest.html |