Bug 383807 - Explain why we are not checking the result of new in nsExternalProtocolHander.cpp. Patch by Ryan Jones <sciguyryan@gmail.com>. r=cbiesinger, sr=dmose

git-svn-id: svn://10.0.0.236/trunk@227885 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sdwilsh%shawnwilsher.com
2007-06-12 18:31:54 +00:00
parent 97ac786473
commit bc9d9e9e1c

View File

@@ -325,6 +325,8 @@ NS_IMETHODIMP nsExtProtocolChannel::AsyncOpen(nsIStreamListener *listener, nsISu
nsCOMPtr<nsIRunnable> event = new nsWebProtocolRedirect(mUrl, uriTemplate,
listener, ctxt,
this);
// We don't check if |event| was successfully created because
// |NS_DispatchToCurrentThread| will do that for us.
rv = NS_DispatchToCurrentThread(event);
if (NS_SUCCEEDED(rv)) {
return rv;