From 2d34fd8ab86cb68c4f07153c65ee84ed75bb65a7 Mon Sep 17 00:00:00 2001 From: xurui Date: Mon, 20 Nov 2023 23:35:28 -0500 Subject: [PATCH] =?UTF-8?q?cherry=20pick=202335a8f=20from=20https://gitee.?= =?UTF-8?q?com/clear=5Faddr/chromium=5Fsrc/pulls/715=20fixed=200f238ed=20f?= =?UTF-8?q?rom=20https://gitee.com/clear=5Faddr/chromium=5Fsrc/pulls/251?= =?UTF-8?q?=20fixed=20f3db271=20from=20https://gitee.com/clear=5Faddr/chro?= =?UTF-8?q?mium=5Fsrc/pulls/167=20=E4=BF=AE=E5=A4=8DCVE-2023-6112?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xurui --- content/browser/loader/navigation_url_loader_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/browser/loader/navigation_url_loader_impl.cc b/content/browser/loader/navigation_url_loader_impl.cc index 6b51ebe791..b1e89b89a6 100644 --- a/content/browser/loader/navigation_url_loader_impl.cc +++ b/content/browser/loader/navigation_url_loader_impl.cc @@ -655,10 +655,10 @@ void NavigationURLLoaderImpl::MaybeStartLoader( next_interceptor->MaybeCreateLoader( *resource_request_, browser_context_, base::BindOnce(&NavigationURLLoaderImpl::MaybeStartLoader, - base::Unretained(this), next_interceptor), + weak_factory_.GetWeakPtr(), next_interceptor), base::BindOnce( &NavigationURLLoaderImpl::FallbackToNonInterceptedRequest, - base::Unretained(this))); + weak_factory_.GetWeakPtr())); return; } -- Gitee