W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2016

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 19 Aug 2016 15:19:58 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20567-3890-5mbkAqd4vB@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20567

--- Comment #75 from Travis Leithead [MSFT] <travil@microsoft.com> ---
(In reply to Anne from comment #74)
> I'm no longer convinced we should do this.
> 
> 1) According to rniwa Safari no longer has GC-dependent behavior.
> 
> 2) Both Chrome and Safari get away with not changing [[Prototype]] on
> adoption, despite this causing some leaks.
> 
> 3) Changing [[Prototype]] for the node and dependent platform objects adds a
> significant amount of complexity to the platform.
> 
> 4) The other case where this would be necessary, document.open(), is
> apparently also not implemented by either Chrome or Safari. They simply keep
> using the same global: https://github.com/whatwg/html/issues/1698. (Adoption
> of which would be an enormous simplification of the standard and
> simultaneously remove a bunch of behavior that was not clearly defined.)

I would like to change Edge to match--this would help with overall performance
and dramatically simplify our code. So... +1 to not doing anything special for
proto-swizzle on adopt (or document.open).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 19 August 2016 15:20:09 UTC

This archive was generated by hypermail 2.3.1 : Friday, 19 August 2016 15:20:10 UTC