From 9a1e152ba30ab26a5f05326dab5dee0fab6e9b32 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Wed, 8 Dec 2021 18:56:27 +0000 Subject: [Docshell] Close ContentViewer properly if initialization fails. --- layout/base/nsDocumentViewer.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'layout') diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index d4fcd7a77b..879f47b206 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -1597,8 +1597,6 @@ DetachContainerRecurse(nsIDocShell *aShell) NS_IMETHODIMP nsDocumentViewer::Destroy() { - NS_ASSERTION(mDocument, "No document in Destroy()!"); - #ifdef NS_PRINTING // Here is where we check to see if the document was still being prepared // for printing when it was asked to be destroy from someone externally -- cgit v1.2.3