зеркало из https://github.com/mozilla/pjs.git
Bug 694804 - Make attempting to serialize an unserializable object in WyciwycChannelParent a real error. r=michal.novotny
This commit is contained in:
Родитель
ec7bafc545
Коммит
1a25430356
|
@ -216,8 +216,10 @@ WyciwygChannelParent::OnStartRequest(nsIRequest *aRequest, nsISupports *aContext
|
||||||
nsCOMPtr<nsISerializable> serializable = do_QueryInterface(securityInfo);
|
nsCOMPtr<nsISerializable> serializable = do_QueryInterface(securityInfo);
|
||||||
if (serializable)
|
if (serializable)
|
||||||
NS_SerializeToString(serializable, secInfoStr);
|
NS_SerializeToString(serializable, secInfoStr);
|
||||||
else
|
else {
|
||||||
NS_WARNING("Can't serialize security info");
|
NS_ERROR("Can't serialize security info");
|
||||||
|
return NS_ERROR_UNEXPECTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mIPCClosed ||
|
if (mIPCClosed ||
|
||||||
|
|
Загрузка…
Ссылка в новой задаче