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

On 10/12/15 12:11 PM, Domenic Denicola wrote:
> Since these are only used as return types and not as arguments, just using `object` or `any` would work, since return types in IDL are just documentation anyway.

You don't even need to do that.  You just return WindowProxy or Window 
or whatever, and Location.  The cases when you need to return a 
cross-origin thing will only happen via cross-origin access of some 
sort, so that's the place where you'll define wrapping in the 
cross-origin thing...

I guess the main issue there is .contentWindow, right?  That's the one 
place where the cross-origin access is implicit...

Oh, and it's not quite clear to me what happens when you have a 
used-to-be-same-origin WindowProxy become cross-origin on navigation. I 
assumes that's defined somewhere in the relevant spec bit...

-Boris

Received on Monday, 12 October 2015 16:44:01 UTC