mshtml: Expose window.performance property to scripts.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-07-11 21:38:05 +02:00 committed by Alexandre Julliard
parent 69d6ae3d8c
commit 47df11ab6e
2 changed files with 3 additions and 2 deletions

View File

@ -3441,11 +3441,10 @@ 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. /* FIXME: Expose getComputedStyle once it's implemented.
* Stubs break existing web sites. */ * Stubs break existing web sites. */
static const dispex_hook_t window7_hooks[] = { static const dispex_hook_t window7_hooks[] = {
{DISPID_IHTMLWINDOW7_GETCOMPUTEDSTYLE, NULL}, {DISPID_IHTMLWINDOW7_GETCOMPUTEDSTYLE, NULL},
{DISPID_IHTMLWINDOW7_PERFORMANCE, NULL},
{DISPID_UNKNOWN} {DISPID_UNKNOWN}
}; };
if(compat_mode >= COMPAT_MODE_IE9) if(compat_mode >= COMPAT_MODE_IE9)

View File

@ -103,6 +103,8 @@ function test_window_props() {
test_exposed("dispatchEvent", v >= 9); test_exposed("dispatchEvent", v >= 9);
test_exposed("getSelection", v >= 9); test_exposed("getSelection", v >= 9);
test_exposed("onfocusout", v >= 9); test_exposed("onfocusout", v >= 9);
if(v >= 9) /* FIXME: native exposes it in all compat modes */
test_exposed("performance", true);
next_test(); next_test();
} }