On 11/21/12 1:39 PM, Honza Bambas wrote:
On 11/21/2012 4:06 PM, Boris Zbarsky wrote:
On 11/21/12 9:50 AM, Honza Bambas wrote:
The question is: where is a good place where nsGlobalWindow already
knows its associated principal to trigger the preload?

Outer window, or inner window?

The same window localStorage getter is called on, so the *inner* one.

Inner windows always know their own principal, and it never changes (at least to a first approximation: same-origin changes might be possible). So if you have an inner window at all, you know the principal.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to