Closed
Bug 1404916
Opened 7 years ago
Closed 1 years ago
nsContentIterator is used over anonymous content
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Tracking
()
RESOLVED
FIXED
119 Branch
People
(Reporter: catalinb, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(2 files)
This is a follow-up for bug 1395973. nsFind will initialize nsContentIterator with anonymous endpoints, but we can't really iterate over it. This currently works out of luck. It would be nice fix this and maybe stop using (node, offset) for initializing nsContentIterator.
Updated•7 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: minor → S4
Comment 1•1 years ago
|
||
This shows up in the profiles from bug 1844470: ContentIteratorBase::GetNextSibling
spends much of its time in this check:
// XXX This is a hack to preserve previous behaviour: This should be fixed
// in bug 1404916. If we were positioned on anonymous content, move to
// the first child of our parent.
if (parent->GetLastChild() && parent->GetLastChild() != aNode) {
return parent->GetFirstChild();
}
Emilio, do you know what to do with this bug?
Blocks: 1844470
Flags: needinfo?(emilio)
Comment 2•1 years ago
|
||
Assignee | ||
Comment 3•1 years ago
|
||
Hard to know off-hand without knowing what fails without it, but at the very least we should be able to replace that check by something faster. Just sent a patch to bug 1849838 doing that. Will send a try run removing it and see what blows up. Comment 0 mentions nsFind but nsFind no longer uses ContentIterator. So maybe it can just go?
Flags: needinfo?(emilio)
Assignee | ||
Comment 4•1 years ago
|
||
Comment 0 mentions nsFind but nsFind no longer uses this code. So let's
try to remove this.
Updated•1 years ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•1 years ago
|
||
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2303dc7d7757
Remove ContentIterator native-anonymous hack. r=smaug
Comment 7•1 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
status-firefox119:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Updated•1 years ago
|
Whiteboard: [sp3]
Updated•1 years ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-513
Updated•1 year ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•