Bug 1457899 - use IPC_FAIL_NO_REASON instead of KillHard in ContentParent::RecvFileCreationRequest; r?baku draft
authorAlex Gaynor <agaynor@mozilla.com>
Fri, 27 Apr 2018 14:58:59 -0400
changeset 789752 3201b83c9e3501550bd55399ca568afcaefced76
parent 789727 63519bfd42ee379f597c0357af2e712ec3cd9f50
push id108335
push userbmo:agaynor@mozilla.com
push dateMon, 30 Apr 2018 14:27:45 +0000
reviewersbaku
bugs1457899
milestone61.0a1
Bug 1457899 - use IPC_FAIL_NO_REASON instead of KillHard in ContentParent::RecvFileCreationRequest; r?baku MozReview-Commit-ID: LoO4Kxh7aZn
dom/ipc/ContentParent.cpp
--- 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,