diff --git a/mozilla/modules/plugin/base/src/ns4xPluginInstance.cpp b/mozilla/modules/plugin/base/src/ns4xPluginInstance.cpp index b065c7f4727..9eaa81b24aa 100644 --- a/mozilla/modules/plugin/base/src/ns4xPluginInstance.cpp +++ b/mozilla/modules/plugin/base/src/ns4xPluginInstance.cpp @@ -255,9 +255,6 @@ ns4xPluginStreamListener::OnStartBinding(nsIPluginStreamInfo* pluginInfo) mStreamInfo = pluginInfo; - // if we don't know the end of the stream, use 0 instead of -1. bug 59571 - if (mNPStream.end == -1) - mNPStream.end = 0; NS_TRY_SAFE_CALL_RETURN(error, CallNPP_NewStreamProc(callbacks->newstream, npp, diff --git a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp index fb7b46a166c..5e23ae3c531 100644 --- a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -2247,7 +2247,7 @@ nsPluginStreamListenerPeer::OnStartRequest(nsIRequest *request, nsISupports* aCo // it's possible for the server to not send a Content-Length. We should // still work in this case. if (NS_FAILED(rv)) { - mPluginStreamInfo->SetLength(PRUint32(-1)); + mPluginStreamInfo->SetLength(PRUint32(0)); } else { mPluginStreamInfo->SetLength(length);