Closed
Bug 1246185
Opened 9 years ago
Closed 9 years ago
Nightly collapsed <details> tag if disabled dom.details_element.enabled = false
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: alice0775, Assigned: TYLin)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
Steps To Reproduce:
1. dom.details_element.enabled = false by default until Bug 1241750 fixed
2. Open URL
Actual Results:
<detail> is collapsed
Expected Results:
For backward compatibility,
I think <detail> should be expanded if disabled dom.details_element.enabled = false;
Reporter | ||
Updated•9 years ago
|
Summary: Nightly collapsed <detail> tag if disabled dom.details_element.enabled = false → Nightly collapsed <details> tag if disabled dom.details_element.enabled = false
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → tlin
Blocks: details-summary
Assignee | ||
Updated•9 years ago
|
Blocks: ship-details-summary
Assignee | ||
Comment 1•9 years ago
|
||
To retain backward compatibility, <details> tags should not collapse its
children when dom.details_element.enabled = false.
Review commit: https://reviewboard.mozilla.org/r/34135/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/34135/
Attachment #8717321 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•9 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 2•9 years ago
|
||
Comment on attachment 8717321 [details]
MozReview Request: Bug 1246185 - Do not collapsed <details> when preference off. r=bz
https://reviewboard.mozilla.org/r/34135/#review30863
Sorry I missed this... r=me
Attachment #8717321 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 3•9 years ago
|
||
bz, it was my fault. Thank you for the review!
https://treeherder.mozilla.org/#/jobs?repo=try&revision=411628cbd595
Keywords: checkin-needed
Keywords: checkin-needed
Assignee | ||
Comment 5•9 years ago
|
||
The root cause of this bug is that I didn't realize HTMLDetailsElement::FromContentOrNull(parent) isn't a type-safe conversion as I thought. It only checks whether the parent has the tag name "nsGkAtoms::details". So when the preference is off, FromContentOrNull still down cast a HTMLUnknownElement with "details" tag into HTMLDetailsElement.
Comment 6•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•