Jacek Caban : mshtml: Expose window.performance property to scripts.

Alexandre Julliard julliard at winehq.org
Wed Jul 11 15:53:51 CDT 2018


Module: wine
Branch: master
Commit: 47df11ab6e5a20572226dd3d5562708a9c007c43
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=47df11ab6e5a20572226dd3d5562708a9c007c43

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Jul 11 21:38:05 2018 +0200

mshtml: Expose window.performance property to scripts.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 401d19d..581de99 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 aa5954b..6ab301f 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();
 }




More information about the wine-cvs mailing list