mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
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:
parent
a7acafc4d3
commit
ec6e1ad2c6
@ -1393,8 +1393,10 @@ DocumentViewerImpl::Destroy()
|
||||
|
||||
if (mDocument)
|
||||
mDocument->SetContainer(nsnull);
|
||||
if (mPresContext)
|
||||
if (mPresContext) {
|
||||
mPresContext->SetLinkHandler(nsnull);
|
||||
mPresContext->SetContainer(nsnull);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user