[whatwg] Navigation events generated during unload
bzbarsky at MIT.EDU
Mon Oct 12 12:24:52 PDT 2009
On 10/12/09 1:55 AM, Ian Hickson wrote:
> Why is the form.submit() ignored? It's not ignored in, e.g.:
But in this case the form action is same-origin with the load that's
> Oops, that's a vestigial bit. The comment is non-normative (and wrong);
> sync. Fixed.
Ah, ok. Thanks.
>> Also, I'm not quite sure what the part about unloading that comes after
>> the algorithm you pointed me to means. Does it mean that once you get
>> the response and start parsing the new document you queue a task to
>> unload the old one? That doesn't seem at all right to me, since at this
>> point the new document can be running scripts that touch the WindowProxy
>> they share...
> Not sure what you mean here. I've tried to clarify that the new page must
> be active before any scripts run.
Looking at the algorithm steps when I made my last comment, it sounded
like the new data starts coming in, the UA starts processing it, and
queues a task to unload the old document. Gecko at the moment, for
example, unloads the old document immediately after firing unload on it,
and before parsing any of the new document. Is that the behavior the
spec calls for?
More information about the whatwg