RE: Defining exotic objects in IDL, HTML, or both?

From: Boris Zbarsky [mailto:bzbarsky@mit.edu] 

> So really, UAs just have to make operator=== work as if these were the same object.  I believe abarth indicated that was ok for v8/blink.  It's clearly ok for Gecko, because you have to enter a single compartment to do the === and then you have wrappers into the same compartment, which are in fact the same object.

What is the downside of just using the same WindowProxy and Location objects? They can have internal switches that allow them to redirect their behavior to multiple internal Window/InternalLocation objects depending on the caller. That seems like the only way, spec-wise, to make this work. Otherwise we're going to have to do a willful violation of ES262 with regard to === semantics, if I am understanding correctly.

Received on Friday, 16 October 2015 15:34:03 UTC