mshtml: Notify the Gecko stream listener that we stopped binding, if an error occurs in start_binding.
This commit is contained in:
parent
860d30eef2
commit
f6daa34857
@ -796,6 +796,8 @@ HRESULT start_binding(BSCallback *bscallback)
|
|||||||
hres = CreateAsyncBindCtx(0, STATUSCLB(bscallback), NULL, &bctx);
|
hres = CreateAsyncBindCtx(0, STATUSCLB(bscallback), NULL, &bctx);
|
||||||
if(FAILED(hres)) {
|
if(FAILED(hres)) {
|
||||||
WARN("CreateAsyncBindCtx failed: %08x\n", hres);
|
WARN("CreateAsyncBindCtx failed: %08x\n", hres);
|
||||||
|
nsIStreamListener_OnStopRequest(bscallback->nslistener, (nsIRequest*)NSCHANNEL(bscallback->nschannel),
|
||||||
|
bscallback->nscontext, NS_OK);
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -803,6 +805,8 @@ HRESULT start_binding(BSCallback *bscallback)
|
|||||||
IBindCtx_Release(bctx);
|
IBindCtx_Release(bctx);
|
||||||
if(FAILED(hres)) {
|
if(FAILED(hres)) {
|
||||||
WARN("BindToStorage failed: %08x\n", hres);
|
WARN("BindToStorage failed: %08x\n", hres);
|
||||||
|
nsIStreamListener_OnStopRequest(bscallback->nslistener, (nsIRequest*)NSCHANNEL(bscallback->nschannel),
|
||||||
|
bscallback->nscontext, NS_OK);
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user