Bug 1457899 - use IPC_FAIL_NO_REASON instead of KillHard in ContentParent::RecvFileCreationRequest; r?baku
MozReview-Commit-ID: LoO4Kxh7aZn
--- a/dom/ipc/ContentParent.cpp
+++ b/dom/ipc/ContentParent.cpp
@@ -5580,17 +5580,16 @@ ContentParent::RecvFileCreationRequest(c
const int64_t& aLastModified,
const bool& aExistenceCheck,
const bool& aIsFromNsIFile)
{
// We allow the creation of File via this IPC call only for the 'file' process
// or for testing.
if (!mRemoteType.EqualsLiteral(FILE_REMOTE_TYPE) &&
!Preferences::GetBool("dom.file.createInChild", false)) {
- KillHard("FileCreationRequest is not supported.");
return IPC_FAIL_NO_REASON(this);
}
RefPtr<BlobImpl> blobImpl;
nsresult rv =
FileCreatorHelper::CreateBlobImplForIPC(aFullPath, aType, aName,
aLastModifiedPassed,
aLastModified, aExistenceCheck,