5948024: [DNT] Fix NavigationController raw_ptr during WebContents destruction

https://chromium-review.googlesource.com/c/chromium/src/+/5948024
This commit is contained in:
Shelley Vohr
2024-10-25 16:30:10 +00:00
committed by GitHub
parent 657cd6ee34
commit f6662c3b6d
2 changed files with 3 additions and 0 deletions

View File

@@ -194,4 +194,6 @@ OffScreenWebContentsView::GetBackForwardTransitionAnimationManager() {
return nullptr;
}
void OffScreenWebContentsView::DestroyBackForwardTransitionAnimationManager() {}
} // namespace electron

View File

@@ -75,6 +75,7 @@ class OffScreenWebContentsView : public content::WebContentsView,
void UpdateWindowControlsOverlay(const gfx::Rect& bounding_rect) override {}
content::BackForwardTransitionAnimationManager*
GetBackForwardTransitionAnimationManager() override;
void DestroyBackForwardTransitionAnimationManager() override;
#if BUILDFLAG(IS_MAC)
bool CloseTabAfterEventTrackingIfNeeded() override;