Why is timeout in struct document?

Kalle Olavi Niemitalo <[email protected]> Tue, 22 Jul 2008 03:09:55 +0300
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
When a script in a web page calls window.setTimeout, ELinks sets
document.timeout.  So, when two tabs are displaying the same
document (e.g. test/ecmascript/scroll.html), only one of the tabs
can have a timeout at a time.  If that tab is closed, then
nothing has a timeout any more.  That does not seem right to me.

Witekfl originally added ecmascript_interpreter.timeout on
2006-10-23, but then replaced that with document.timeout in
commit 2fe0623298a5a16b6a97885de30f5aae1a44855d the next day.
Why was that?

On a related note, we should perhaps add a document_view.title
or view_state.title that ECMAScript could modify instead of
document.title.  It seems weird that document title changes
affect multiple tabs while input field changes do not.

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIhSVdHm9IGt60eMgRAgpmAJsEJ8yZ01vzuvlImxDbmpA5Wk2goACglzu/
ZvbvvDRsGNw5CXt6JXVaUYs=
=pfyd
-----END PGP SIGNATURE-----