1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Forget forms when reloading (bug 620 ?).

This commit is contained in:
Witold Filipczyk 2007-08-30 19:36:48 +02:00 committed by Witold Filipczyk
parent 940196b131
commit 2d69e2e625

View File

@ -1198,11 +1198,17 @@ reload(struct session *ses, enum cache_mode cache_mode)
if (have_location(ses)) {
struct location *loc = cur_loc(ses);
struct file_to_load *ftl;
int i;
#ifdef CONFIG_ECMASCRIPT
loc->vs.ecmascript_fragile = 1;
#endif
/* Forget forms. */
for (i = 0; i < loc->vs.form_info_len; i++)
mem_free_if(loc->vs.form_info[i].value);
mem_free_set(&loc->vs.form_info, NULL);
loc->vs.form_info_len = 0;
free_list(loc->vs.forms);
/* FIXME: When reloading use loading_callback and set up a
* session task so that the reloading will work even when the
* reloaded document contains redirects. This is needed atleast