Commit e1c74c2e authored by Riku Palomäki's avatar Riku Palomäki Committed by Marshall Greenblatt
Browse files

Make sure to call OnLoadingStateChange when navigation state changes (fixes issue #2624)

parent 8c3bd381
...@@ -2306,8 +2306,10 @@ void CefBrowserHostImpl::LoadingStateChanged(content::WebContents* source, ...@@ -2306,8 +2306,10 @@ void CefBrowserHostImpl::LoadingStateChanged(content::WebContents* source,
// This method may be called multiple times in a row with |is_loading| true // 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. // 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; return;
}
is_loading_ = is_loading; is_loading_ = is_loading;
can_go_back_ = can_go_back; can_go_back_ = can_go_back;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment