Bug 2025971 - Use txSingleNodeContext getter of owned txXPathNode.

eContext gets a copy of aNode. The function should use that one's member
as it's not a shared reference, which we can't know the life time of.
This commit is contained in:
Simon Farre
2026-04-24 14:09:59 +02:00
committed by roytam1
parent 0bf878118a
commit 368694e27a
+2 -2
View File
@@ -160,9 +160,9 @@ PathExpr::evalDescendants(Expr* aStep, const txXPathNode& aNode,
resNodes->addAndTransfer(newSet);
bool filterWS = aContext->isStripSpaceAllowed(aNode);
bool filterWS = aContext->isStripSpaceAllowed(eContext.getContextNode());
txXPathTreeWalker walker(aNode);
txXPathTreeWalker walker(eContext.getContextNode());
if (!walker.moveToFirstChild()) {
return NS_OK;
}