Bug 1842546 - Removed dom.input_events.beforeinput.enabled pref. r=dom-core,webidl,smaug,masayuki

Differential Revision: https://phabricator.services.mozilla.com/D183578
This commit is contained in:
Jan-Niklas Jaeschke
2023-07-17 08:50:11 +00:00
parent 68e8f1cf4c
commit 44a2887100
6 changed files with 19 additions and 38 deletions

View File

@@ -2859,7 +2859,6 @@ bool TextControlState::SetValueWithoutTextEditor(
nsString inputEventData(aHandlingSetValue.GetSettingValue());
if (aHandlingSetValue.ValueSetterOptionsRef().contains(
ValueSetterOption::BySetUserInputAPI) &&
StaticPrefs::dom_input_events_beforeinput_enabled() &&
!aHandlingSetValue.HasBeforeInputEventDispatched()) {
// This probably occurs when session restorer sets the old value with
// `setUserInput`. If so, we need to dispatch "beforeinput" event of