1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04: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:
Miciah Dashiel Butler Masters 2007-12-27 21:36:46 +00:00
parent f598226be4
commit 12dce0d1c0

View File

@ -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;
}
}