Bug 258078

Summary: Regression(264098@main) HTMLFieldsetElement behavior for :enabled / :disabled CSS selectors is incorrect
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: FormsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: annevk, cdumez, ntim, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/whatwg/html/issues/5886#issuecomment-1582410112
See Also: https://github.com/web-platform-tests/wpt/pull/40547
https://bugs.webkit.org/show_bug.cgi?id=251246

Description Chris Dumez 2023-06-14 08:59:30 PDT
HTMLFieldsetElement behavior for :enabled / :disabled CSS selectors is incorrect since 264098@main (when sendMouseEventsToDisabledFormControlsEnabled experimental flag is enabled).
This is because it updated HTMLFieldSetElement::isDisabledFormControl() to return false. However, the CSS selector should rely on the "actually disabled" state, not the "disabled" state.
Comment 1 Chris Dumez 2023-06-14 09:28:06 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14959
Comment 2 EWS 2023-06-14 14:32:50 PDT
Committed 265166@main (a6d354d7281c): <https://commits.webkit.org/265166@main>

Reviewed commits have been landed. Closing PR #14959 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-06-14 14:33:24 PDT
<rdar://problem/110799351>