mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Improve the timing of OnLoadEnd (fixes issue #3341)
Use WebContentsDelegate::DidFinishLoad instead of a custom Mojo message. This fixes flaky OnLoadEnd behavior with NavigationTest.Order.
This commit is contained in:
@ -364,15 +364,6 @@ void CefFrameImpl::OnDidFinishLoad() {
|
||||
blink::WebDocumentLoader* dl = frame_->GetDocumentLoader();
|
||||
const int http_status_code = dl->GetWebResponse().HttpStatusCode();
|
||||
|
||||
SendToBrowserFrame(__FUNCTION__,
|
||||
base::BindOnce(
|
||||
[](const GURL& url, int http_status_code,
|
||||
const BrowserFrameType& browser_frame) {
|
||||
browser_frame->DidFinishFrameLoad(url,
|
||||
http_status_code);
|
||||
},
|
||||
dl->GetUrl(), http_status_code));
|
||||
|
||||
CefRefPtr<CefApp> app = CefAppManager::Get()->GetApplication();
|
||||
if (app) {
|
||||
CefRefPtr<CefRenderProcessHandler> handler = app->GetRenderProcessHandler();
|
||||
|
Reference in New Issue
Block a user