W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

[Bug 20567] Change [[Prototype]] for concept-node-adopt?

From: <bugzilla@jessica.w3.org>
Date: Tue, 28 Jan 2014 22:49:01 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20567-3890-jhFDhzpI9i@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20567

--- Comment #68 from Anne <annevk@annevk.nl> ---
We had a discussion within the Gecko team about this. We agreed on these
things:

1. We have to deal with multiple globals that can access each other. (ES6
provides constructors, <iframe> already exists.)
2. We would like to reduce memory leaks.
3. We would like a consistent story across custom elements and normal elements,
given that the latter might end up being implemented using the former.

Given that we do not want to repeat mutation events, a proposal was made to
queue a microtask during adopt that would be responsible for the clean up. In
case of custom elements the microtask would run a callback and the developer of
the custom element would be responsible for the cleanup.

This makes it deterministic when prototype cleanup happens and consistent
across normal and custom elements.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 28 January 2014 22:49:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC