Re: Fwd: Data uri origin inheritance

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]>
On 1/16/14 11:41 AM, João Eiras wrote:
>> Just to check, what makes you think there is an opener, in general? Consider
>> the user opening a new tab, contains window W.  Then W opens a new window V.
>> Then V navigates W to a data: URI.  W has no opener.
>>
>
> There is an opener when window.open() is called. There is a owner
> document when using frames. But you know this already. I don't
> understand why you are asking.

Please do me a favor.  Read the example I wrote above.  What origin 
should be used when W is navigated to a data: URI and why?

> The testcase does exactly what we've discussed in this thread, and it
> expects a PASS.

The testcase is so obfuscated that it's hard to tell what it does.  I 
can try to tease it out, but you could also try to write it in a clear 
and simple way so it tests one and only one thing, doesn't try to be 
clever with using the same HTML for multiple independent pages, doesn't 
require random hosts file hacks, etc.  That would sure make it simpler 
to answer your "is it valid?" question.

If you want me to spend time answering that question, I really do 
suggest you do the above, because I simply don't have any more time to 
spend on this discussion if we're doing to ignore parts of it and write 
obfuscated code.

> It's code and a bit more than a page long, self contained, easy to
> read.

You and I clearly have different standards for easy to read code.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.