diff --git a/desktop/browser_window.c b/desktop/browser_window.c index 6defe0182..2b0e3143a 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -4644,7 +4644,7 @@ browser_window__reload_current_parameters(struct browser_window *bw) /* Exported interface, documented in browser_window.h */ browser_window_page_info_state browser_window_get_page_info_state( - struct browser_window *bw) + const struct browser_window *bw) { lwc_string *scheme; bool match; diff --git a/include/netsurf/browser_window.h b/include/netsurf/browser_window.h index e8faa1877..eb2bd7c6b 100644 --- a/include/netsurf/browser_window.h +++ b/include/netsurf/browser_window.h @@ -774,7 +774,7 @@ nserror browser_window_console_log(struct browser_window *bw, * \return The state of the browser window */ browser_window_page_info_state browser_window_get_page_info_state( - struct browser_window *bw); + const struct browser_window *bw); /** * Request the current browser window SSL certificate chain.