Bug 1262359 (part 5) - Add a missing rv check for call to nsDataHandler::ParseURI(). r=jduell.

--HG--
extra : rebase_source : 785b8b0bb91c73f6dc4c1b0b237617ff68010819
This commit is contained in:
Nicholas Nethercote 2016-04-06 17:23:56 +10:00
parent 0af5a36bf5
commit 8232d31724

View File

@ -33,6 +33,8 @@ nsDataChannel::OpenContentStream(bool async, nsIInputStream **result,
bool lBase64;
rv = nsDataHandler::ParseURI(spec, contentType, &contentCharset,
lBase64, &dataBuffer);
if (NS_FAILED(rv))
return rv;
NS_UnescapeURL(dataBuffer);