Able to use date picker in input[type=date] disabled by containing fieldset
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: e61k78gh8, Assigned: ayeddi)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Steps to reproduce:
In the minimal example below, click the date picker button.
<!DOCTYPE html>
<html>
<body>
Disabled date input (expected behaviour):<br/>
<input type="date" disabled/>
<fieldset disabled>
<legend>Date input disabled by containing fieldset</legend>
<input type="date"/>
</fieldset>
</body>
</html>
This happens in Firefox nightly
Name: Firefox
Version: 122.0a1
Build ID: 20231121045833
Distribution ID:
Update Channel: nightly
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
OS: Windows_NT 10.0 19044
Actual results:
I can open the date picker and set the date.
Expected results:
I shouldn’t be able to set the date, as in the disabled input shown in the minimal example.
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
#1 Regression window:
Date picker appears and can input selected date.
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=99052dd249cc79a752aeed699b8cb4633f3d2cd9&tochange=fe7d9416e64121a3e2b356311b669f2a53052e7b
#2 Regression window:
In addition to the #1 regression, It be able directly enter the date by typing the keyboard.
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=6df208248f1f5ca15bfee43388a67ba776b29b8b&tochange=1848bf6824418bef21a045bae455870ae98d7d9b
Updated•2 years ago
|
Comment 3•2 years ago
|
||
https://searchfox.org/mozilla-central/rev/381c3f18a1896792e23a9503c1904aedac19aa06/toolkit/content/widgets/datetimebox.js#334-335 only looks at the attribute, which is wrong.
| Assignee | ||
Comment 4•2 years ago
|
||
Thank you for reporting the issue, Iuri Rezende Souza! And thank you both Emilio and Alice for the investigation!
I'll work on the fix ASAP.
Comment 5•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
Comment 6•2 years ago
|
||
I didn't take this intentionally, I won't have time to finish comment 5 today for sure, and it's totally untested, so if you have the cycles to poke and investigate feel free to. Otherwise I'll try to get back to it this or next week :)
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 7•2 years ago
|
||
Depends on D194271
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•