Bug 765: use load_uri to load old tab's document
commitf5103d0cc09162e3380121aea40237da9ca25772
authorMiciah Dashiel Butler Masters <miciah.masters@gmail.com>
Sat, 12 Jul 2008 05:52:26 +0000 (12 05:52 +0000)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Wed, 27 May 2009 19:14:19 +0000 (27 22:14 +0300)
tree338a032bfc20079b2a3d0ee29866e445039c32b9
parentf4a231cb9acdd480c64cf79a1a1f168e54db8e9e
Bug 765: use load_uri to load old tab's document

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.
(cherry picked from commit d6116ca83ab683f07b1fa5aa4aa4e8e73bcfeabf)
src/session/session.c