Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/7a75ec1576fc2a4f3d445b33b1d9f00e0007643d
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/7a75ec1576fc2a4f3d445b33b1d9f00e0007643d
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/7a75ec1576fc2a4f3d445b33b1d9f00e0007643d

The branch, master has been updated
       via  7a75ec1576fc2a4f3d445b33b1d9f00e0007643d (commit)
      from  fe45bc1dbea417c2258a22797ace09926b33a481 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=7a75ec1576fc2a4f3d445b33b1d9f00e0007643d
commit 7a75ec1576fc2a4f3d445b33b1d9f00e0007643d
Author: John-Mark Bell <[email protected]>
Commit: John-Mark Bell <[email protected]>

    History: don't update if there's no content.
    
    Fixes #2566.

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index 6403027..d9db0eb 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,


-----------------------------------------------------------------------

Summary of changes:
 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 6403027..d9db0eb 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,


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to