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

@@ -621,15 +621,10 @@ nsWebShell::OnLinkClick(nsIContent* aContent,
nsIInputStream* aPostDataStream,
nsIInputStream* aHeadersDataStream)
{
nsCOMPtr<nsIThread> thread = do_GetCurrentThread();
NS_ENSURE_STATE(thread);
nsCOMPtr<nsIRunnable> ev =
new OnLinkClickEvent(this, aContent, aVerb, aURI, aTargetSpec,
aPostDataStream, aHeadersDataStream);
NS_ENSURE_TRUE(ev, NS_ERROR_OUT_OF_MEMORY);
return thread->Dispatch(ev, NS_DISPATCH_NORMAL);
return NS_DispatchToCurrentThread(ev);
}
NS_IMETHODIMP