Re: Object sharing across globals

On Fri, Jul 19, 2013 at 12:48 PM, Dimitri Glazkov <dglazkov@google.com> wrote:
> I would expect AN & BN', effectively returning results in the form of
> "here are the objects you created and clones of some others that you
> didn't". Because:
>
> 1) Least surprise -- an object from another window doesn't emerge as a result.
> 2) Consistent for both for sync and async case.

Jonas and I came to the same conclusion. An additional reason is that
it makes it easier for B to get garbage collected. So Notification
objects become proxy objects for notifications. With one Notification
proxy per notification per global.


--
http://annevankesteren.nl/

Received on Friday, 19 July 2013 20:38:11 UTC