Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user