Closed Bug 1829874 Opened 1 years ago Closed 1 year ago

Disabled fieldset should not stop event propagation

Categories

(Core :: DOM: Events, defect)

Firefox 112
defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: turand, Assigned: saschanaz)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

Steps to reproduce:

This is the same bug, that I has been fixed in chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=1422547

(1) open the codepen: https://jsfiddle.net/vxr45h3c/
(2) click RUN
(3) click disabled - click me

Actual results:

Nothing - no alert is shown.

Expected results:

The event should be propagated up to the document -> alert should be show.

Fieldset elements themselves aren't actually supposed to be disabled
form controls, they are just supposed to make their descendant field
control elements disabled:
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fe-disabled

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Events' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Events
Product: Firefox → Core

Looks Kagami has been on this issue already.

Blocks: 1653882
Flags: needinfo?(krosylight)

I think I'll wait until it reaches the Chrome stable channel to see if the approach is web compatible. I hope that makes sense.

Flags: needinfo?(krosylight)

Putting this in my dashboard btw.

Assignee: nobody → krosylight

S2 because it blocks another S2.

Severity: -- → S2

@K(In reply to Kagami [:saschanaz] from comment #3)

I think I'll wait until it reaches the Chrome stable channel to see if the approach is web compatible. I hope that makes sense.

I reported this to Chromium as soon as they have broken it recently in stable channel. The requested behavior is original behavior of chromium, so it is "Web compatible"

The thing is that Blink is experimenting to change their general disabled form element behavior. If they decide the whole approach is not web-compatible then we'll need to discuss more and may need to implement some other approach. So I'd like to see the conclusion before doing something here.

That said, I think fixing this specific issue would be simple enough and probably shouldn't be affected even if we decide to try some other approach. A patch will be welcome.

See Also: → 1821114
Depends on: 1821114
See Also: 1821114

At this point both WebKit TP and Chrome stable have this, we can make the change with reasonable confidence.

Attachment #9337511 - Attachment description: WIP: Bug 1829874 - Do not set disabled state on fieldsets r=smaug → Bug 1829874 - Do not set disabled state on fieldsets r=edgar
Attachment #9337511 - Attachment description: Bug 1829874 - Do not set disabled state on fieldsets r=edgar → WIP: Bug 1829874 - Allow events on disabled fieldsets r=edgar
Attachment #9337511 - Attachment description: WIP: Bug 1829874 - Allow events on disabled fieldsets r=edgar → Bug 1829874 - Allow events on disabled fieldsets r=edgar
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/487a29bd817e Allow events on disabled fieldsets r=edgar
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/40520 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fbc03cb5c0eb Allow events on disabled fieldsets r=edgar
Flags: needinfo?(krosylight)

Oh no, forgot to enable dom.forms.fieldset_disable_only_descendants.enabled for tests to prevent beta simulation failure.

Regressions: 1838236
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1428838
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: