Commit 17e6d75e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Call on_start_nsrequest synchronously in async_stop_request is no data was read before.

parent 5ba1f867
......@@ -689,6 +689,8 @@ HRESULT start_binding(HTMLWindow *window, HTMLDocumentNode *doc, BSCallback *bsc
IStream *str = NULL;
HRESULT hres;
TRACE("(%p %p %p %p)\n", window, doc, bscallback, bctx);
bscallback->doc = doc;
/* NOTE: IE7 calls IsSystemMoniker here*/
......@@ -1001,11 +1003,6 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
request_result = NS_ERROR_FAILURE;
}
if(!This->bsc.readed && SUCCEEDED(result)) {
TRACE("No data read! Calling OnStartRequest\n");
on_start_nsrequest(This);
}
if(This->nslistener) {
nsres = nsIStreamListener_OnStopRequest(This->nslistener,
(nsIRequest*)&This->nschannel->nsIHttpChannel_iface, This->nscontext,
......@@ -1270,6 +1267,11 @@ static HRESULT async_stop_request(nsChannelBSC *This)
{
stop_request_task_t *task;
if(!This->bsc.readed) {
TRACE("No data read, calling OnStartRequest\n");
on_start_nsrequest(This);
}
task = heap_alloc(sizeof(*task));
if(!task)
return E_OUTOFMEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment