Make `nsContentUtils::ComparePointsWithIndices` a private method
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 external file)
It takes a pair of a set of a container and an offset in it. The method may treat the given points are handled as in a <slot> if the TreeKind is for the flattened tree. However, it's really unclear. So, I think all callers should use nsContentUtils::ComparePoints with temporary created ConstRawRangeBoundary instances since they have TreeKind data.
| Assignee | ||
Comment 1•9 months ago
|
||
It does not have the information of TreeKind for the parameters.
Therefore, this API users may set offset in the different kind of the
tree unexpectedly. For example,
nsRange::MayCrossShadowBoundaryStartOffset() returns either offset in
the flattened tree or in the non-flattened tree.
Therefore, all users of this API should use
nsContentUtils::ComparePoints() instead.
Updated•8 months ago
|
| Assignee | ||
Comment 5•8 months ago
|
||
I think I should fix bug2014622 together because I found a misunderstanding of FlatForSelection tree logic during the review and the misunderstood logic introduces the cases which Selection API do not work with legal parameters. I guess the crash reports are caused by the case.
Comment 7•5 months ago
|
||
| bugherder | ||
Comment 9•5 months ago
|
||
Backed out for causing Bug 2052026
| Assignee | ||
Updated•5 months ago
|
Comment 10•4 months ago
|
||
Comment 11•4 months ago
|
||
| bugherder | ||
Updated•4 months ago
|
Description
•