On Feb 2, 2011, at 03:07, Ian Hickson wrote:

> I suppose we could make it so that scripts get neutered when the document 
> that they were first associated with gets unloaded. Would that work?

We did something different.

> Proposal #1:

Proposal #4 (what Gecko now does):

 * If at the time when the parser triggers the 'run' algorithm, the owner 
document of the script is not the same document whose active parser the parser 
is, set the 'already executed' flag and abort the steps.

 * If at the time of a script becoming available for evaluation the owner 
document of the script is not the same document that was the owner document at 
the time of the 'run' algorithm, don't evaluate the script.

See https://bugzilla.mozilla.org/show_bug.cgi?id=592366

-- 
Henri Sivonen
hsivo...@iki.fi
http://hsivonen.iki.fi/


Reply via email to