mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #2135 - Follow-up: Fix crash for passing nullptr as an argument to the aNodesWithProperties parameter
This commit is contained in:
parent
4d778226ed
commit
c194fbf6a8
1 changed files with 2 additions and 1 deletions
|
|
@ -259,12 +259,13 @@ SVGUseElement::CreateAnonymousContent()
|
|||
}
|
||||
}
|
||||
|
||||
nsCOMArray<nsINode> unused;
|
||||
nsNodeInfoManager* nodeInfoManager =
|
||||
targetContent->OwnerDoc() == OwnerDoc() ?
|
||||
nullptr : OwnerDoc()->NodeInfoManager();
|
||||
IgnoredErrorResult rv;
|
||||
nsCOMPtr<nsINode> newnode =
|
||||
nsNodeUtils::Clone(targetContent, true, nodeInfoManager, nullptr, rv);
|
||||
nsNodeUtils::Clone(targetContent, true, nodeInfoManager, unused, rv);
|
||||
nsCOMPtr<nsIContent> newcontent = do_QueryInterface(newnode);
|
||||
|
||||
if (!newcontent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue