Fixing bug 198254. Fix crash when closing javascript created window. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@160932 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1928,6 +1928,9 @@ PresShell::Destroy()
|
||||
// pres shell to NULL
|
||||
if (mPresContext) {
|
||||
mPresContext->SetShell(nsnull);
|
||||
|
||||
// Clear the link handler (weak reference) as well
|
||||
mPresContext->SetLinkHandler(nsnull);
|
||||
}
|
||||
|
||||
if (mViewEventListener) {
|
||||
|
||||
Reference in New Issue
Block a user