diff options
-rw-r--r-- | desktop/browser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 43847baf1..33cd42ba6 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -497,13 +497,13 @@ nserror browser_window_callback(hlcache_handle *c, hlcache_handle_release(bw->current_content); } + bw->current_content = c; + bw->loading_content = NULL; + /* Format the new content to the correct dimensions */ gui_window_get_dimensions(bw->window, &width, &height, true); content_reformat(c, width, height); - bw->current_content = c; - bw->loading_content = NULL; - browser_window_remove_caret(bw); bw->scroll = NULL; |