git-svn-id: svn://10.0.0.236/branches/THREADS_20060213_BRANCH@191591 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net
2006-03-02 18:20:42 +00:00
parent df1f4fd61e
commit abe3870e50
105 changed files with 979 additions and 1303 deletions

View File

@@ -5156,18 +5156,13 @@ nsDocShell::RestorePresentation(nsISHEntry *aSHEntry, PRBool *aRestoring)
// to the event loop. This mimics the way it is called by nsIChannel
// implementations.
nsCOMPtr<nsIThread> thread = do_GetCurrentThread();
NS_ENSURE_TRUE(thread, NS_ERROR_UNEXPECTED);
if (!mWeakSelf) {
mWeakSelf = this;
NS_ENSURE_TRUE(mWeakSelf, NS_ERROR_OUT_OF_MEMORY);
}
nsCOMPtr<nsIRunnable> evt = new RestorePresentationEvent(mWeakSelf);
NS_ENSURE_TRUE(evt, NS_ERROR_OUT_OF_MEMORY);
nsresult rv = thread->Dispatch(evt, NS_DISPATCH_NORMAL);
nsresult rv = NS_DispatchToCurrentThread(evt);
if (NS_SUCCEEDED(rv)) {
// The rest of the restore processing will happen on our PLEvent
// callback.