Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan

This commit is contained in:
Andrea Marchesini
2015-05-19 15:36:37 +01:00
parent 07218d9255
commit b45d15ecff
35 changed files with 380 additions and 395 deletions

View File

@@ -118,10 +118,12 @@ DeserializeInputStream(const InputStreamParams& aParams,
// If fetching the internal stream fails, we ignore it and return a
// null stream.
ErrorResult rv;
nsCOMPtr<nsIInputStream> stream;
nsresult rv = blobImpl->GetInternalStream(getter_AddRefs(stream));
if (NS_FAILED(rv) || !stream) {
blobImpl->GetInternalStream(getter_AddRefs(stream), rv);
if (NS_WARN_IF(rv.Failed()) || !stream) {
NS_WARNING("Couldn't obtain a valid stream from the blob");
rv.SuppressException();
}
return stream.forget();
}