On Sun, Mar 23, 2008 at 11:57:12PM +0000, Jeremy Henty (me) wrote:
On Sun, Mar 23, 2008 at 11:37:35PM +0000, Jeremy Henty (me) wrote:
Any ideas how to fix this? I having a hard time getting my head around this bit of the code.
Hmm, this little patch seems to do it.
Ooops, no it doesn't - it crashes Dillo if you press the reload button or left-click an internal link on a page with a '<meta http-equiv="Content-Type"...' element. Strangely, middle-clicking to bring up a new browser is OK, which is why I missed this problem at first. So how *do* we fix this? Jeremy Henty
diff -pru -- 00_pre/src/nav.c 01_post/src/nav.c --- 00_pre/src/nav.c 2008-03-16 15:29:31.000000000 +0000 +++ 01_post/src/nav.c 2008-03-23 23:54:13.000000000 +0000 @@ -334,8 +334,9 @@ static void Nav_repush(BrowserWindow *bw ReqURL = a_Url_dup(a_History_get_url(NAV_TOP_UIDX(bw))); /* Let's make reload be from Cache */ a_Url_set_flags(ReqURL, URL_FLAGS(ReqURL) | URL_ReloadFromCache); + bw->nav_expect_url = ReqURL; + bw->nav_expecting = TRUE; Nav_open_url(bw, ReqURL, 0); - a_Url_free(ReqURL); } }