mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix test flakyness in renderer process OnLoadingStateChange history state
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user