Fix test flakyness in renderer process OnLoadingStateChange history state

This commit is contained in:
Marshall Greenblatt
2018-02-20 13:51:59 -05:00
parent 9e644b7538
commit 57fb011377
4 changed files with 17 additions and 45 deletions

View File

@@ -429,10 +429,6 @@ void CefBrowserImpl::OnDestruct() {
CefContentRendererClient::Get()->OnBrowserDestroyed(this);
}
void CefBrowserImpl::DidStartLoading() {
OnLoadingStateChange(true);
}
void CefBrowserImpl::DidStopLoading() {
OnLoadingStateChange(false);
}
@@ -458,6 +454,9 @@ void CefBrowserImpl::DidFailProvisionalLoad(blink::WebLocalFrame* frame,
void CefBrowserImpl::DidCommitProvisionalLoad(blink::WebLocalFrame* frame,
bool is_new_navigation) {
if (frame->Parent() == nullptr) {
OnLoadingStateChange(true);
}
OnLoadStart(frame);
}