mshtml: Added SID_SContainerDispatch support.
This commit is contained in:
parent
718959e854
commit
36a47dd0f2
|
@ -649,6 +649,15 @@ static HRESULT WINAPI ASServiceProvider_QueryService(IServiceProvider *iface, RE
|
|||
riid, ppv);
|
||||
}
|
||||
|
||||
if(IsEqualGUID(&SID_SContainerDispatch, guidService)) {
|
||||
TRACE("(%p)->(SID_SContainerDispatch)\n", This);
|
||||
|
||||
if(!This->window || !This->window->doc)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
return IHTMLDocument2_QueryInterface(&This->window->doc->basedoc.IHTMLDocument2_iface, riid, ppv);
|
||||
}
|
||||
|
||||
FIXME("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
|
|
@ -2104,6 +2104,22 @@ static void test_ui(void)
|
|||
IActiveScriptSiteUIControl_Release(ui_control);
|
||||
}
|
||||
|
||||
static void test_sp(void)
|
||||
{
|
||||
IServiceProvider *sp;
|
||||
IUnknown *unk;
|
||||
HRESULT hres;
|
||||
|
||||
hres = IActiveScriptSite_QueryInterface(site, &IID_IServiceProvider, (void**)&sp);
|
||||
ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres);
|
||||
|
||||
hres = IServiceProvider_QueryService(sp, &SID_SContainerDispatch, &IID_IHTMLDocument, (void**)&unk);
|
||||
ok(hres == S_OK, "Could not get SID_SContainerDispatch service: %08x\n", hres);
|
||||
IUnknown_Release(unk);
|
||||
|
||||
IServiceProvider_Release(sp);
|
||||
}
|
||||
|
||||
static void test_script_run(void)
|
||||
{
|
||||
IDispatchEx *document, *dispex;
|
||||
|
@ -2329,6 +2345,7 @@ static void test_script_run(void)
|
|||
|
||||
test_security();
|
||||
test_ui();
|
||||
test_sp();
|
||||
}
|
||||
|
||||
static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *iface,
|
||||
|
|
Loading…
Reference in New Issue