Open Bug 1146318 Opened 9 years ago Updated 2 years ago

Consider making it impossible to use elements as Web IDL parent objects

Categories

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

x86
macOS
defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

Details

Attachments

(1 file)

Then we could avoid having XBL constructors and whatnot run during wrapping and hence remove the hackery in Wrap() where getting the parent object might wrap the object we're trying to wrap.

We'll need to do some serious restricting of what types are allowed to be return values of GetParentObject to do this, I expect
In particular, we'd need to disallow nsISupports returns from GetParentObject, which involves changing a 
_lot_ of consumers.  Arguably those consumers should be doing something not quite as slow...
That said, things parented to elements that are anonymous go into the XBL scope, so it might not be possible to really do what this bug is asking for, until we kill XBL.
Priority: -- → P2
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: