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

Re: Object sharing across globals

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 19 Jul 2013 13:37:43 -0700
Message-ID: <CADnb78hQ33-pEPzxeEkUCUQn4yV0k+3muDZKEHvjp9msWmWa8w@mail.gmail.com>
To: Dimitri Glazkov <dglazkov@google.com>
Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
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.

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:17 UTC