From 7066a12d6c9a7fd2aad8ec7a138f1496356a7b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Riku=20Palom=C3=A4ki?= Date: Mon, 18 Mar 2019 21:03:36 +0000 Subject: [PATCH] Make sure to call OnLoadingStateChange when navigation state changes (fixes issue #2624) --- libcef/browser/browser_host_impl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libcef/browser/browser_host_impl.cc b/libcef/browser/browser_host_impl.cc index 1b9e5c798..bf5a2e6bb 100644 --- a/libcef/browser/browser_host_impl.cc +++ b/libcef/browser/browser_host_impl.cc @@ -2306,8 +2306,10 @@ void CefBrowserHostImpl::LoadingStateChanged(content::WebContents* source, // This method may be called multiple times in a row with |is_loading| true // as a result of https://crrev.com/5e750ad0. Ignore the 2nd+ times. - if (is_loading_ == is_loading) + if (is_loading_ == is_loading && can_go_back_ == can_go_back && + can_go_forward_ == can_go_forward) { return; + } is_loading_ = is_loading; can_go_back_ = can_go_back;