<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ian Hickson wrote:
<blockquote
cite="mid:Pine.LNX.4.62.0811140136410.1041@hixie.dreamhostps.com"
type="cite">
<pre wrap="">On Fri, 14 Nov 2008, Shannon wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I don't see any value in the "user-agent specified amount of time" delay
in stopping scripts. How can you write cleanup code when you have no
consistency in how long it gets to run (or if it runs at all)?
</pre>
</blockquote>
<pre wrap=""><!---->
The "user-agent specified amount of time" delay is implemented by every
major browser for every script they run today.
How can people write clean code when they have no consistency in how long
their scripts will run (or if they will run at all)?
Why is this any different?
</pre>
</blockquote>
Why does that matter? I think you're asking the wrong question. As
designers of a new spec the question should be "how can we fix this?".
If the answer is to include a mandatory cleanup window for ALL scripts
then that should be considered (even if that window is 0 seconds).<br>
<br>
<blockquote
cite="mid:Pine.LNX.4.62.0811140136410.1041@hixie.dreamhostps.com"
type="cite">
<blockquote type="cite">
<pre wrap="">If you can't rely on a cleanup then it becomes necessary to have some
kind of repair/validation sequence run on the data next time it is
accessed to check if it's valid.
</pre>
</blockquote>
<pre wrap=""><!---->
You need to do that anyway to handle powerouts and crashes.
</pre>
</blockquote>
That was the point of my concern. Given that the only 100% reliable
cleanup window is 0 seconds it would be more consistent (and honest) to
make that the spec. Offering a cleanup window of uncertain length is
somewhat pointless and bound to cause incompatibilities across UAs. Is
there a strong argument against making 0 seconds mandatory, given that
anything else is inconsistent across UA, architecture and circumstance?<br>
<br>
<blockquote
cite="mid:Pine.LNX.4.62.0811140136410.1041@hixie.dreamhostps.com"
type="cite">
<pre wrap="">It's not clear which document the cookie would be for. localStorage is
as light-weight than cookies (lighter-weight, arguably), though, so that
should be enough, no?
</pre>
</blockquote>
Fair enough.<br>
<br>
<br>
Shannon
</body>
</html>