From 7a75ec1576fc2a4f3d445b33b1d9f00e0007643d Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sat, 20 Jan 2018 18:47:26 +0000 Subject: History: don't update if there's no content. Fixes #2566. --- desktop/browser_history.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/browser_history.c b/desktop/browser_history.c index 640302773..d9db0eb18 100644 --- a/desktop/browser_history.c +++ b/desktop/browser_history.c @@ -601,7 +601,9 @@ nserror browser_window_history_go(struct browser_window *bw, url, NULL, bw, NULL); history->current = current; } else { - browser_window_history_update(bw, bw->current_content); + if (bw->current_content != NULL) { + browser_window_history_update(bw, bw->current_content); + } history->current = entry; error = browser_window_navigate(bw, url, NULL, BW_NAVIGATE_NO_TERMINAL_HISTORY_UPDATE, -- cgit v1.2.3