mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
setup_session: Restore ses->doc_view->vs pointer after copying base's vs
After copying the base session's viewstate, restore the ses->doc_view->vs
pointer.
This follows up on commit 65321923b9
:
In setup_session, copy the viewstate for the new session from the base
session.
This fixes bug 977: When opening a javascript: link in a new tab, an
assertion on ses->doc_view->vs in ecmascript_protocol_handler would fail.
This commit is contained in:
parent
f598226be4
commit
12dce0d1c0
@ -830,6 +830,8 @@ setup_session(struct session *ses, struct uri *uri, struct session *base)
|
||||
|
||||
destroy_vs(vs, 1);
|
||||
copy_vs(vs, base->doc_view->vs);
|
||||
|
||||
ses->doc_view->vs = vs;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user