From 47df11ab6e5a20572226dd3d5562708a9c007c43 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 11 Jul 2018 21:38:05 +0200 Subject: [PATCH] mshtml: Expose window.performance property to scripts. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/htmlwindow.c | 3 +-- dlls/mshtml/tests/documentmode.js | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 401d19de168..581de990eee 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -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) { - /* FIXME: Expose getComputedStyle and performance once they are implemented. + /* FIXME: Expose getComputedStyle once it's 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) diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index aa5954bf334..6ab301f84b7 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -103,6 +103,8 @@ function test_window_props() { test_exposed("dispatchEvent", v >= 9); test_exposed("getSelection", v >= 9); test_exposed("onfocusout", v >= 9); + if(v >= 9) /* FIXME: native exposes it in all compat modes */ + test_exposed("performance", true); next_test(); }