-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form associated ElementInternals always reports customError when using setValidity #42134
Conversation
EWS run on previous version of this PR (hash 24002d3) |
There is a previous attempt to fix this bug: #19434 |
24002d3
to
1fcfb12
Compare
EWS run on previous version of this PR (hash 1fcfb12) |
1fcfb12
to
7bb50ca
Compare
EWS run on previous version of this PR (hash 7bb50ca) |
7bb50ca
to
1ec62db
Compare
EWS run on previous version of this PR (hash 1ec62db) |
The api-mac and api-wpe tests seem to be flakey and fail for unrelated reasons to this PR, as they also fail in other PRs for the same reason at the moment. |
The failure in mac-wk1 looks real. You need to run the following command to reset the expected result for WebKit1
|
1ec62db
to
5684798
Compare
EWS run on previous version of this PR (hash 5684798) |
@rniwa Thank you for the advice! |
5684798
to
a97679c
Compare
EWS run on current version of this PR (hash a97679c) |
@rniwa At this point it seems to be a matter of luck to get all of the test suites to pass. The problems seem unrelated to this PR. Should I keep trying by rebasing or is this state good enough to merge? |
Indeed, EWS failures seem unrelated to this PR so I'm adding it to the merge queue. Thanks for the bug fix :) |
No problem. Thank you again for the help. 🙇 |
…g setValidity https://bugs.webkit.org/show_bug.cgi?id=261432 Reviewed by Ryosuke Niwa. The current implementation toggles customError when any validationMessage is set, which works for native form elements, but breaks with ElementInternals. This PR fixes this by overriding the customError check in FormAssociatedCustomElement. (Test was added in web-platform-tests/wpt#51039) * LayoutTests/imported/w3c/web-platform-tests/custom-elements/form-associated/ElementInternals-validation-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/custom-elements/form-associated/ElementInternals-validation.html: * LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/custom-elements/form-associated/ElementInternals-validation-expected.txt * Source/WebCore/html/FormAssociatedCustomElement.h: * Source/WebCore/html/FormListedElement.h: Canonical link: https://commits.webkit.org/291878@main
a97679c
to
072d9ca
Compare
Committed 291878@main (072d9ca): https://commits.webkit.org/291878@main Reviewed commits have been landed. Closing PR #42134 and removing active labels. |
072d9ca
a97679c
🛠 playstation