Closed Bug 1735077 Opened 3 years ago Closed 3 years ago

"checked" attribute from <input type="checkbox" disabled checked> no longer works

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 95
defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox93 --- unaffected
firefox94 --- fixed
firefox95 --- fixed

People

(Reporter: dukevinjduke, Assigned: emilio)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(1 file)

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

Steps to reproduce:

Create an HTML element with
<input type="checkbox" disabled checked>
The checkbox does not respect the "checked" attribute unlike in Firefox stable channel and Chrome/Edge.

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

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

input type="radio" is also affected.
data:text/html,<input type="radio" name="aa" disabled checked>

Nice catch :)

Assignee: nobody → emilio
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6e92568e4216 Fix rendering of <input type=checkbox/radio disabled checked>. r=jwatt
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/31186 for changes under testing/web-platform/tests
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/8df1cd9300e4 Don't change indeterminate radio rendering, as that's apparently a thing.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Upstream PR merged by moz-wptsync-bot

Comment on attachment 9245221 [details]
Bug 1735077 - Fix rendering of <input type=checkbox/radio disabled checked>. r=mstange,#layout-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: Regression from bug 1734115 which we want on beta.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very simple fix to non-native checkbox-drawing codepath.
  • String changes made/needed: none
Attachment #9245221 - Flags: approval-mozilla-beta?

Comment on attachment 9245221 [details]
Bug 1735077 - Fix rendering of <input type=checkbox/radio disabled checked>. r=mstange,#layout-reviewers

Approved for 94.0b6

Attachment #9245221 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: