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)
Tracking
()
NEW
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
Reporter | ||
Comment 1•6 years ago
|
||
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...
Reporter | ||
Comment 2•6 years ago
|
||
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.
Reporter | ||
Comment 3•6 years ago
|
||
Updated•6 years ago
|
Priority: -- → P2
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•