Bug 765: use load_uri to load the old tab's document to avoid crashmiciah/bug-765
commitc1fa9c55bfce0a1dc1914be25d16a37bfb24fc62
authorMiciah Dashiel Butler Masters <miciah.masters@gmail.com>
Sat, 12 Jul 2008 05:52:26 +0000 (12 05:52 +0000)
committerMiciah Dashiel Butler Masters <miciah.masters@gmail.com>
Sat, 12 Jul 2008 05:52:26 +0000 (12 05:52 +0000)
treea0b592e6d7789f4f2854119151055b9ed0ed3577
parent9a7c6e9111222d219f95f41ab67931657bfe0e55
Bug 765:  use load_uri to load the old tab's document to avoid crash

Kalle reported that after commit 5c96d430c98d7b67cf397aac83cfdfa1788aa6df,
ELinks would crash if the document in the old tab was still loading when a
new tab was opened.  The problem was that the new session's download.data
pointer was not updated to point to the session as doc_loading_callback
expects.

Instead of just calling render_document_frames, set up the download and
call load_uri.
src/session/session.c