Commit 8a0cba82 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use Gecko inner window in HTMLXMLHttpRequestFactory_create.

parent e68cc482
......@@ -3304,10 +3304,8 @@ static void test_window_refs(IHTMLDocument2 *doc)
IHTMLWindow2_Release(child);
hres = IHTMLXMLHttpRequestFactory_create(xhr_factory, &xhr);
todo_wine
ok(hres == S_OK, "create failed: %08lx\n", hres);
IHTMLXMLHttpRequestFactory_Release(xhr_factory);
if(hres == S_OK) IHTMLXMLHttpRequest_Release(xhr);
hres = IHTMLImageElementFactory_create(image_factory, vempty, vempty, &img_elem);
ok(hres == S_OK, "create failed: %08lx\n", hres);
......
......@@ -1686,10 +1686,7 @@ static HRESULT WINAPI HTMLXMLHttpRequestFactory_create(IHTMLXMLHttpRequestFactor
TRACE("(%p)->(%p)\n", This, p);
if(!This->window->base.outer_window)
return E_FAIL;
nsxhr = create_nsxhr(This->window->base.outer_window->nswindow);
nsxhr = create_nsxhr(This->window->dom_window);
if(!nsxhr)
return E_FAIL;
......
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