Commit ca313f57 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Expose IHTMLWindow7 interface to scripts.

parent 127df702
...@@ -3418,6 +3418,15 @@ static void HTMLWindow_bind_event(DispatchEx *dispex, eventid_t eid) ...@@ -3418,6 +3418,15 @@ static void HTMLWindow_bind_event(DispatchEx *dispex, eventid_t eid)
static void HTMLWindow_init_dispex_info(dispex_data_t *info, compat_mode_t compat_mode) static void HTMLWindow_init_dispex_info(dispex_data_t *info, compat_mode_t compat_mode)
{ {
/* FIXME: Expose getComputedStyle and performance once they are implemented.
* Stubs break existing web sites. */
static const dispex_hook_t window7_hooks[] = {
{DISPID_IHTMLWINDOW7_GETCOMPUTEDSTYLE, NULL},
{DISPID_IHTMLWINDOW7_PERFORMANCE, NULL},
{DISPID_UNKNOWN}
};
if(compat_mode >= COMPAT_MODE_IE9)
dispex_info_add_interface(info, IHTMLWindow7_tid, window7_hooks);
dispex_info_add_interface(info, IHTMLWindow5_tid, NULL); dispex_info_add_interface(info, IHTMLWindow5_tid, NULL);
EventTarget_init_dispex_info(info, compat_mode); EventTarget_init_dispex_info(info, compat_mode);
} }
......
...@@ -84,6 +84,8 @@ function test_window_props() { ...@@ -84,6 +84,8 @@ function test_window_props() {
test_exposed("addEventListener", v >= 9); test_exposed("addEventListener", v >= 9);
test_exposed("removeEventListener", v >= 9); test_exposed("removeEventListener", v >= 9);
test_exposed("dispatchEvent", v >= 9); test_exposed("dispatchEvent", v >= 9);
test_exposed("getSelection", v >= 9);
test_exposed("onfocusout", v >= 9);
next_test(); next_test();
} }
......
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