Bug 694804 - Make attempting to serialize an unserializable object in WyciwycChannelParent a real error. r=michal.novotny

This commit is contained in:
Mujtaba Arshad 2011-10-25 11:35:03 -04:00
parent c6b791606b
commit 60b1d95057

View File

@ -216,8 +216,10 @@ WyciwygChannelParent::OnStartRequest(nsIRequest *aRequest, nsISupports *aContext
nsCOMPtr<nsISerializable> serializable = do_QueryInterface(securityInfo);
if (serializable)
NS_SerializeToString(serializable, secInfoStr);
else
NS_WARNING("Can't serialize security info");
else {
NS_ERROR("Can't serialize security info");
return NS_ERROR_UNEXPECTED;
}
}
if (mIPCClosed ||