mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Don't follow wrong link when an event handler changes documents under us
When a link had an onClick event handler that changes the current document, ELinks would follow the current link of the document displayed after executing the handler. Factor goto_link out of goto_current_link. Use goto_link instead of goto_current_link in activate_link to ensure that the link that is passed in by enter() is followed.
This commit is contained in:
parent
20eee6f2c8
commit
6a91849889
@ -951,7 +951,7 @@ call_onsubmit_and_submit(struct session *ses, struct document_view *doc_view,
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct link *
|
||||
static struct link *
|
||||
goto_link(struct session *ses, struct document_view *doc_view, struct link *link, int do_reload)
|
||||
{
|
||||
struct uri *uri;
|
||||
|
Loading…
Reference in New Issue
Block a user