WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
259010
Add comment about duplicate check in 'checkInvalidControlsAndCollectUnhandled' function within 'if' clause
https://bugs.webkit.org/show_bug.cgi?id=259010
Summary
Add comment about duplicate check in 'checkInvalidControlsAndCollectUnhandled...
Ahmad Saleem
Reported
2023-07-08 01:03:40 PDT
Bug to remove duplicate check from this:
https://github.com/WebKit/WebKit/blob/da535631d69cc22753758c77b058981ee8bb3e09/Source/WebCore/html/HTMLFormElement.cpp#L811
We have: if (control->form() == this && !control->checkValidity(&unhandledInvalidControls) && control->form() == this) Which can be just: if (!control->checkValidity(&unhandledInvalidControls) && control->form() == this) ______ Just raising to fix this. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-07-08 02:41:03 PDT
This is needed for: fast/forms/interactive-validation-remove-node-in-handler.html & fast/forms/checkValidity-handler-updates-dom.html
Ahmad Saleem
Comment 2
2023-07-09 07:20:27 PDT
Reopening to add explanatory comment.
EWS
Comment 3
2023-07-09 11:46:38 PDT
Committed
265890@main
(e7780d735de3): <
https://commits.webkit.org/265890@main
> Reviewed commits have been landed. Closing PR #15663 and removing active labels.
Radar WebKit Bug Importer
Comment 4
2023-07-09 11:47:17 PDT
<
rdar://problem/111982031
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug