Closed Bug 655909 Opened 13 years ago Closed 10 years ago

Sort out whether DOM File objects need to own their wrappers

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 827823

People

(Reporter: khuey, Unassigned)

References

Details

Consider:

<input>.files[0].expando = foo;
... gc ...
alert(<input>.files[0].expando);

Currently expando will not exist because the wrapper was GCd.  Do we need to make Files hold on to their wrappers?

Per sicking, there are a number of other DOM objects this applies to.  I'm filing this here to start thinking about it.
Our long-term plan is to wrapper-cache everything in the DOM.  See bug 648801 comment 10.
The answer to this is "yes" and it'll be done in bug 827823.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.