summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorOlli Pettay <Olli.Pettay@helsinki.fi>2021-12-08 18:56:27 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-07 23:53:44 +0200
commit9a1e152ba30ab26a5f05326dab5dee0fab6e9b32 (patch)
tree3c88ab085412ad000550b679fd4ea7788fa23ce3 /layout
parenta9046dcd55c721bb3ddedadbbdb217848cb99d8e (diff)
downloaduxp-9a1e152ba30ab26a5f05326dab5dee0fab6e9b32.tar.gz
[Docshell] Close ContentViewer properly if initialization fails.
Diffstat (limited to 'layout')
-rw-r--r--layout/base/nsDocumentViewer.cpp2
1 files changed, 0 insertions, 2 deletions
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