Closed Bug 849745 Opened 11 years ago Closed 4 years ago

Assertion failure: "AncestorHasDirAuto set on node but not its children" with nested dir=auto, comment

Categories

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

x86_64
macOS
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr52 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- wontfix

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(2 files)

Assertion failure: !aElement->AncestorHasDirAuto() || child->AncestorHasDirAuto() (AncestorHasDirAuto set on node but not its children), at content/base/src/DirectionalityUtils.cpp:684
Keywords: regression
Attached patch Patch v.1Splinter Review
Wow, I had no idea that comments turn up looking like other child nodes when walking the DOM. Are there other kinds of nodes that we should be excluding here?
Attachment #724845 - Flags: feedback?(ehsan)
Processing instruction?
And does the code handle both TEXT_NODE and CDATA_SECTION_NODE?
(There is some child->NodeType() == nsIDOMNode::TEXT_NODE check).
Comment on attachment 724845 [details] [diff] [review]
Patch v.1

Review of attachment 724845 [details] [diff] [review]:
-----------------------------------------------------------------

Yeah you want to handle PIs too.
Attachment #724845 - Flags: feedback?(ehsan) → feedback+
Confirmed that current m-c is still affected.
Severity: critical → normal
Has Regression Range: --- → no
Priority: -- → P3
Component: DOM → DOM: Core & HTML

This was last seen by the fuzzers in Aug 2018. The attached test case also no longer reproduces the issue.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: