Make sure to null out the pres context's container when putting the page into session history (bug 297173). r+sr=dbaron, a=brendan.

This commit is contained in:
bryner%brianryner.com 2005-06-21 02:18:57 +00:00
parent a7acafc4d3
commit ec6e1ad2c6

View File

@ -1393,8 +1393,10 @@ DocumentViewerImpl::Destroy()
if (mDocument)
mDocument->SetContainer(nsnull);
if (mPresContext)
if (mPresContext) {
mPresContext->SetLinkHandler(nsnull);
mPresContext->SetContainer(nsnull);
}
return NS_OK;
}