mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 01:09:39 +03:00
Ensure url bar is updated with in-progress URL and restored if stop/download occurs
svn path=/trunk/netsurf/; revision=10385
This commit is contained in:
parent
8fd3bb959a
commit
3c81d2a527
@ -437,6 +437,7 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
|
||||
|
||||
bw->loading_content = c;
|
||||
browser_window_start_throbber(bw);
|
||||
browser_window_refresh_url_bar(bw, url, NULL);
|
||||
}
|
||||
|
||||
|
||||
@ -455,6 +456,11 @@ nserror browser_window_callback(hlcache_handle *c,
|
||||
|
||||
browser_window_convert_to_download(bw, event->data.download);
|
||||
|
||||
if (bw->current_content != NULL) {
|
||||
browser_window_refresh_url_bar(bw,
|
||||
content_get_url(bw->current_content),
|
||||
bw->frag_id);
|
||||
}
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_LOADING:
|
||||
@ -847,6 +853,11 @@ void browser_window_stop(struct browser_window *bw)
|
||||
browser_window_stop(&bw->iframes[index]);
|
||||
}
|
||||
|
||||
if (bw->current_content != NULL) {
|
||||
browser_window_refresh_url_bar(bw,
|
||||
content_get_url(bw->current_content), bw->frag_id);
|
||||
}
|
||||
|
||||
browser_window_stop_throbber(bw);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user