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

This commit is contained in:
Riku Palomäki 2019-03-18 21:03:36 +00:00 committed by Marshall Greenblatt
parent d8845b88f4
commit 64ad8c32f2
1 changed files with 3 additions and 1 deletions

View File

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