On Apr 6, 2006, at 4:19 PM, Boris Zbarsky wrote:
Ian Hickson wrote:
The case I was particularly concerned about was not "presented" vs
"not presented", but "has its own global scripting context" and
"is neutral to script". A document in an IFRAME has its own Window
-- if you have navigated away from that document, but still have a
handle to it, does it execute <script> elements that you insert
into it?
The current answer in Gecko seems to be "maybe, possibly depending
on what else is going on". In particular, it may depend on whether
the document got placed in back/forward cache, the exact Gecko
version (there are some patches that may inadvertently affect
this), etc. See https://bugzilla.mozilla.org/show_bug.cgi?
id=293175 for more information on part of the issue...
I would say that ideally the answer here would be "no".
I think "no" should be the right answer too. It seems unfortunate to
tie scripting to (some sense of) presentation, but you definitely
want a Window when you are running script, and not when you don't.
The definition of presentation is also loose enough that it's not
hard to claim it applies whenever you want it to, so long as you meet
all the conformance requirements for a document presented in a
browsing context.
Regards,
Maciej