mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #2135 - Bug 1393806/Part 3: Change dom::ReparentWrapper to take an ErrorResult
* Bug 1393806 (Part 4) landed as part of Issue #1118. * Account for ReparentWrappersInSubtree, introduced in 1466991
This commit is contained in:
parent
3062964d28
commit
9f0fb9c16e
7 changed files with 72 additions and 41 deletions
|
|
@ -155,6 +155,8 @@ NS_NewDOMDocument(nsIDOMDocument** aInstancePtrResult,
|
|||
if (aDoctype) {
|
||||
nsCOMPtr<nsIDOMNode> tmpNode;
|
||||
rv = doc->AppendChild(aDoctype, getter_AddRefs(tmpNode));
|
||||
// TODO: if we choose to land bug 1318479, make sure to call
|
||||
// result.WouldReportJSException() before stealing the NSResult.
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
|
|
@ -167,6 +169,8 @@ NS_NewDOMDocument(nsIDOMDocument** aInstancePtrResult,
|
|||
nsCOMPtr<nsIDOMNode> tmpNode;
|
||||
|
||||
rv = doc->AppendChild(root, getter_AddRefs(tmpNode));
|
||||
// TODO: if we choose to land bug 1318479, make sure to call
|
||||
// result.WouldReportJSException() before stealing the NSResult.
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue