mshtml: Return E_ABORT if wine-gecko's OnDataAvailable aborts the binding.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2022-11-07 17:35:12 +02:00 committed by Alexandre Julliard
parent 08957afe17
commit c2d55cd24e
2 changed files with 6 additions and 2 deletions

View file

@ -1184,8 +1184,10 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
(nsIRequest*)&This->nschannel->nsIHttpChannel_iface, This->nscontext,
&This->nsstream->nsIInputStream_iface, This->bsc.read-This->nsstream->buf_size,
This->nsstream->buf_size);
if(NS_FAILED(nsres))
ERR("OnDataAvailable failed: %08lx\n", nsres);
if(NS_FAILED(nsres)) {
WARN("OnDataAvailable failed: %08lx\n", nsres);
return map_nsresult(nsres);
}
if(This->nsstream->buf_size == sizeof(This->nsstream->buf)) {
ERR("buffer is full\n");

View file

@ -911,6 +911,8 @@ HRESULT map_nsresult(nsresult nsres)
return E_UNEXPECTED;
case NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR:
return 0x80700007; /* according to tests */
case NS_BINDING_ABORTED:
return E_ABORT;
}
return E_FAIL;
}