mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
abe138f771
Currently, a lot of code dispatch "input" event and some of them dispatch "input" event with wrong interface and/or values. Therefore this patch creates nsContentUtils::DispatchInputEvent() to make all of them dispatch correct event. Unfortunately, due to bug 1506439, we cannot set pointer to refcountable classes of MOZ_CAN_RUN_SCRIPT method to nullptr. Therefore, this patch creates temporary RefPtr<TextEditor> a lot even though it makes damage to the performance if it's in a hot path. This patch makes eEditorInput event dispatched with InternalEditorInputEvent when "input" event should be dispatched with dom::InputEvent. However, this patch uses WidgetEvent whose message is eUnidentifiedEvent and setting WidgetEvent::mSpecifiedEventType to nsGkAtoms::oninput when "input" event should be dispatched with dom::Event because we need to keep that eEditorInput and InternalEditorInputEvent are mapped each other. Differential Revision: https://phabricator.services.mozilla.com/D12244 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
test | ||
.eslintrc.js | ||
AutoCompletePopup.jsm | ||
FormHistory.jsm | ||
FormHistoryStartup.js | ||
formSubmitListener.js | ||
jar.mn | ||
moz.build | ||
nsFormAutoComplete.js | ||
nsFormAutoCompleteResult.jsm | ||
nsFormFillController.cpp | ||
nsFormFillController.h | ||
nsIFormAutoComplete.idl | ||
nsIFormFillController.idl | ||
nsIInputListAutoComplete.idl | ||
nsInputListAutoComplete.js | ||
satchel.manifest | ||
towel |