diff options
-rw-r--r-- | desktop/browser_window.c | 5 | ||||
-rw-r--r-- | include/netsurf/window.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/desktop/browser_window.c b/desktop/browser_window.c index 7227023af..1fa3161bb 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -818,6 +818,11 @@ static nserror browser_window_content_ready(struct browser_window *bw) browser_window_create_iframes(bw, html_get_iframe(bw->current_content)); } + /* Indicate page status may have changed */ + if (res == NSERROR_OK) { + res = guit->window->event(bw->window, GW_EVENT_PAGE_INFO_CHANGE); + } + return res; } diff --git a/include/netsurf/window.h b/include/netsurf/window.h index 38ce295a7..8f14a8c78 100644 --- a/include/netsurf/window.h +++ b/include/netsurf/window.h @@ -119,6 +119,12 @@ enum gui_window_event { * selection started */ GW_EVENT_START_SELECTION, + + /** + * Page status has changed and so the padlock should be + * updated. + */ + GW_EVENT_PAGE_INFO_CHANGE, }; /** |