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:
Daniel Silverstone 2010-04-12 10:57:41 +00:00
parent 8fd3bb959a
commit 3c81d2a527

View File

@ -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);
}