[whatwg] SQL storage and onunload
Brady Eidson
beidson at apple.com
Fri Feb 8 09:24:58 PST 2008
Though it would be very nice to have defined semantics wrt the unload
handler, I always thought this work could be done with the
beforeonunload handler, instead.
As far as the unload handler question, what are the semantics for
XHR? Seems the application of "saving some application state via I/O"
is the same concept here, so the same rules should apply.
~Brady
On Feb 8, 2008, at 1:44 AM, Alexey Proskuryakov wrote:
>
> It seems to be a natural idea to save Web application state from an
> unload event handler. But is it guaranteed that client-side database
> API is still functional at this point? And if it is - can one queue
> up more statements and/or transactions from statement callbacks?
>
> There needs to be some limits put on this, as otherwise a script
> could continue to use resources indefinitely after a browser window
> is closed. But I do not see where it is specified, explicitly or
> implicitly.
>
> - WBR, Alexey Proskuryakov
>
More information about the whatwg
mailing list