GTK: Ensure that we don't frob the URL bar from the scaffold

To correctly refocus the location box on tab switching we
need to not update the url of the tab when the scaffold updates
its global context.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-02-22 15:47:17 +00:00
parent a016445a82
commit c9e5fa9bc1
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74
2 changed files with 4 additions and 4 deletions

View File

@ -262,9 +262,6 @@ static void scaffolding_update_context(struct nsgtk_scaffolding *g)
nsgtk_scaffolding_set_sensitivity(g);
/* update the url bar, particularly necessary when tabbing */
browser_window_refresh_url_bar(bw);
nsgtk_local_history_hide();
}
@ -1353,7 +1350,7 @@ void nsgtk_scaffolding_set_top_level(struct gui_window *gw)
sc->top_level = gw;
/* Synchronise the history (will also update the URL bar) */
/* Synchronise the history */
scaffolding_update_context(sc);
/* Ensure the window's title bar is updated */

View File

@ -3592,6 +3592,9 @@ nserror nsgtk_toolbar_throbber(struct nsgtk_toolbar *tb, bool active)
browser_window_history_forward_available(bw));
nsgtk_local_history_hide();
/* update the url bar, for the final time */
browser_window_refresh_url_bar(bw);
return res;
}