Bug 1415081 - part 3 - WebSocketChannel cannot use ::Available() to know the size of a nsIAsyncInputStream, r=smaug
This commit is contained in:
@@ -1047,13 +1047,6 @@ public:
|
||||
{
|
||||
MOZ_ASSERT(mMsgType == kMsgTypeStream, "Not a stream!");
|
||||
|
||||
#ifdef DEBUG
|
||||
// Make sure we got correct length from Blob
|
||||
uint64_t bytes;
|
||||
mMsg.pStream->Available(&bytes);
|
||||
NS_ASSERTION(bytes == mLength, "Stream length != blob length!");
|
||||
#endif
|
||||
|
||||
nsAutoPtr<nsCString> temp(new nsCString());
|
||||
nsresult rv = NS_ReadInputStreamToString(mMsg.pStream, *temp, mLength);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user