chrome: Fix DCHECK when a temporary CefFrame is destroyed (see issue #2969)

The temporary CefFrame is created in NavigationOnUIThread during PDF loading.
This commit is contained in:
Marshall Greenblatt 2021-11-16 17:43:33 -05:00
parent 7f0c88b5da
commit f3cea7e7df
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ CefFrameHostImpl::CefFrameHostImpl(scoped_refptr<CefBrowserInfo> browser_info,
} }
CefFrameHostImpl::~CefFrameHostImpl() { CefFrameHostImpl::~CefFrameHostImpl() {
// Should have been Detached. // Should have been Detached if not temporary.
DCHECK(!browser_info_); DCHECK(is_temporary() || !browser_info_);
DCHECK(!render_frame_host_); DCHECK(!render_frame_host_);
} }