Open Bug 1541965 Opened 5 years ago Updated 2 years ago

Figure out how to stop using AutoJSContext during node adoption/reparenting.

Categories

(Core :: DOM: Core & HTML, task, P2)

task

Tracking

()

Tracking Status
firefox68 --- affected

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 1 open bug)

Details

It's used in Document::AdoptNode and nsNodeUtils::CloneAndAdopt.

The former we could probably solve with a Maybe<AutoJSAPI>; it only matters for the cross-document adopt case for that one node.

CloneAndAdopt, though, goes over the whole tree, and it would be nice to not create a temporary AutoJSAPI per node. I'm not sure what the best thing to do there is, yet.

Type: defect → task
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.