Bug 683777 - In an attempt to fix a crash in nsDocShell::InternalLoad, re-land bug 646641 with an extra null-check. r=smaug

This commit is contained in:
Justin Lebar
2011-10-21 11:26:34 -04:00
parent fd2a1e21f8
commit 61c2d50b3c
24 changed files with 1312 additions and 813 deletions

View File

@@ -66,6 +66,7 @@
// session history
#include "nsSHEntry.h"
#include "nsSHEntryShared.h"
#include "nsSHistory.h"
#include "nsSHTransaction.h"
@@ -87,15 +88,15 @@ Initialize()
nsresult rv = nsSHistory::Startup();
NS_ENSURE_SUCCESS(rv, rv);
rv = nsSHEntry::Startup();
return rv;
nsSHEntryShared::Startup();
return NS_OK;
}
static void
Shutdown()
{
nsSHistory::Shutdown();
nsSHEntry::Shutdown();
nsSHEntryShared::Shutdown();
gInitialized = false;
}