On Tue, Jul 22, 2008 at 03:09:55AM +0300, Kalle Olavi Niemitalo wrote: > 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?
I don't remember. Probably, the reason was: the ecmascript_interpreter is not "done" when document is "done". Its place should be ecmascript_interpreter. Instead of one timeout ought to be the list of timeouts. I didn't check how it worked with tabs. > 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. -- Witek _______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
