Bug 1288694 - Wrong use of ErrorResult in dom/ipc/FilePickerParent, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Fri, 22 Jul 2016 13:01:41 +0200
changeset 346384 d53ccef42be42f705c1fb6cffe6c979e3451977e
parent 346383 30745bed2567f484ff609a6d389a0e57a1b4a8d5
child 346385 bbfdbbf1dab41bb9f4395c56a15df061bf67e309
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1288694
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1288694 - Wrong use of ErrorResult in dom/ipc/FilePickerParent, r=smaug
dom/ipc/FilePickerParent.cpp
--- a/dom/ipc/FilePickerParent.cpp
+++ b/dom/ipc/FilePickerParent.cpp
@@ -105,21 +105,23 @@ FilePickerParent::IORunnable::Run()
       continue;
     }
 
     RefPtr<BlobImpl> blobImpl = new BlobImplFile(mFiles[i]);
 
     ErrorResult error;
     blobImpl->GetSize(error);
     if (NS_WARN_IF(error.Failed())) {
+      error.SuppressException();
       continue;
     }
 
     blobImpl->GetLastModified(error);
     if (NS_WARN_IF(error.Failed())) {
+      error.SuppressException();
       continue;
     }
 
     BlobImplOrString* data = mResults.AppendElement();
     data->mType = BlobImplOrString::eBlobImpl;
     data->mBlobImpl = blobImpl;
   }