Closed Bug 1246185 Opened 8 years ago Closed 8 years ago

Nightly collapsed <details> tag if disabled dom.details_element.enabled = false

Categories

(Core :: Layout, defect)

47 Branch
defect
Not set
normal

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;
Summary: Nightly collapsed <detail> tag if disabled dom.details_element.enabled = false → Nightly collapsed <details> tag if disabled dom.details_element.enabled = false
Assignee: nobody → tlin
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)
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
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+
bz, it was my fault. Thank you for the review!

https://treeherder.mozilla.org/#/jobs?repo=try&revision=411628cbd595
Keywords: checkin-needed
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.
https://hg.mozilla.org/mozilla-central/rev/600942ae9823
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: