Bug 770864 - NPAPI stream destroyed with reason NPRES_NETWORK_ERR when the user leaves the page. r=gfritzsche

This commit is contained in:
mmakrai 2012-11-28 12:15:47 +01:00
parent d9dd86b601
commit ef4e8289ec

View File

@ -746,7 +746,7 @@ nsNPAPIPluginStreamListener::OnStopBinding(nsPluginStreamListenerPeer* streamPee
return NS_ERROR_FAILURE;
NPReason reason = NS_FAILED(status) ? NPRES_NETWORK_ERR : NPRES_DONE;
if (mRedirectDenied) {
if (mRedirectDenied || status == NS_BINDING_ABORTED) {
reason = NPRES_USER_BREAK;
}