From ec6e1ad2c619f10f39feb1fbd27b90c924c91d30 Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Tue, 21 Jun 2005 02:18:57 +0000 Subject: [PATCH] Make sure to null out the pres context's container when putting the page into session history (bug 297173). r+sr=dbaron, a=brendan. --- layout/base/nsDocumentViewer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 532cad110e5a..fa8342747340 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -1393,8 +1393,10 @@ DocumentViewerImpl::Destroy() if (mDocument) mDocument->SetContainer(nsnull); - if (mPresContext) + if (mPresContext) { mPresContext->SetLinkHandler(nsnull); + mPresContext->SetContainer(nsnull); + } return NS_OK; }