Re: WebIDL and prototype chains

On Thu, Jul 16, 2009 at 3:08 PM, Jonas Sicking<jonas@sicking.cc> wrote:
> On Thu, Jul 16, 2009 at 2:59 PM, Maciej Stachowiak<mjs@apple.com> wrote:
>> One thing to note: any object or method that is exposed cross-origin should
>> specifically *not* have this behavior. Instead, it should create a separate
>> interface object in every frame that accesses the property. window.history,
>> window.location and window.postMessage are examples that require this
>> treatment. Web IDL needs to give a hook to other specs so they can specify
>> that cross-origin properties need to get this different treatment.
>
> I definitely agree you definitely don't want the inner windows
> prototype values if it's a cross-origin window. What you should get is
> less clear to me.
>
> If you should get the outer windows prototype or some sort of blank
> prototype. Personally it'd make the most sense to me if you got a
> blank prototype since that seems like the most consistent behavior.

Either behavior seems fine to me.  I'd just like to see it speced
somewhere so we can all do the same thing.  :)

Adam

Received on Thursday, 16 July 2009 22:22:05 UTC