Re: resolving references when object from other security context is in scope

> Also, defining new variables in the with block that previously exist  
> neither in the global scope nor in the IFRAME's shows inconsistency across  
> browsers:
> 
> with(iframe.contentWindow){
>      previouslyUndefinedVariable='test';
> }
> 
> Those browsers that throw for the second sample above also throw for this.  
> (This does seem a bit concerning because in those browsers this can be  

> used to spy on what *names* another site has defined in its JS.


Just to clarify this, I didn't proof read enough before sending: it's the browsers that *do not* throw for the second sample above and allow defining new variables in the parent scope if they don't exist in the other origin scope I'm concerned about..

-- 
Hallvord R. M. Steen
Core tester, Opera Software

Received on Friday, 7 June 2013 12:06:14 UTC