Bug 1949439 - Part 1: Stop dispatching unused DOMFormSubmit chrome-only event; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D239150
This commit is contained in:
Edgar Chen
2025-02-25 11:23:37 +00:00
parent 37e882b861
commit 4ac8a8da39
4 changed files with 14 additions and 33 deletions

View File

@@ -3346,7 +3346,7 @@ void HTMLInputElement::LegacyPreActivationBehavior(
// that means that if there are scripted submissions, the
// latest one will be deferred until after the exit point of the
// handler.
mForm->OnSubmitClickBegin(this);
mForm->OnSubmitClickBegin();
if (aVisitor.mDOMEvent) {
if (auto* mouseEvent = aVisitor.mDOMEvent->AsMouseEvent()) {