From 0d719e8d5d8c195d76568fe93e9df945066365bd Mon Sep 17 00:00:00 2001 From: Butkovits Atila Date: Tue, 9 Nov 2021 21:17:48 +0200 Subject: [PATCH] Backed out changeset d2e38d5047ae (bug 1730120) for causing Crashtest failures at crashtests/1419902.html. CLOSED TREE --- docshell/base/nsDocShell.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index d8382a75f31f..5ba454d54645 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -8107,11 +8107,7 @@ nsresult nsDocShell::SetupNewViewer(nsIContentViewer* aNewViewer, mContentViewer->SetNavigationTiming(mTiming); if (NS_FAILED(mContentViewer->Init(widget, bounds, aWindowActor))) { - nsCOMPtr viewer = mContentViewer; - viewer->Close(nullptr); - viewer->Destroy(); mContentViewer = nullptr; - mCurrentURI = nullptr; NS_WARNING("ContentViewer Initialization failed"); return NS_ERROR_FAILURE; }