Module: wine Branch: master Commit: d1ca5f0d19bd6e54e61016e8cf8d862ffd6c8ec9 URL: https://gitlab.winehq.org/wine/wine/-/commit/d1ca5f0d19bd6e54e61016e8cf8d862...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Jul 10 23:18:50 2024 +0200
mshtml: Use host object script bindings for Selection class.
---
dlls/mshtml/selection.c | 2 +- dlls/mshtml/tests/documentmode.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/selection.c b/dlls/mshtml/selection.c index 8c457f1813f..c20c24dad5f 100644 --- a/dlls/mshtml/selection.c +++ b/dlls/mshtml/selection.c @@ -253,7 +253,7 @@ HRESULT HTMLSelectionObject_Create(HTMLDocumentNode *doc, nsISelection *nsselect if(!selection) return E_OUTOFMEMORY;
- init_dispatch(&selection->dispex, &HTMLSelectionObject_dispex, NULL, + init_dispatch(&selection->dispex, &HTMLSelectionObject_dispex, doc->script_global, dispex_compat_mode(&doc->node.event_target.dispex));
selection->IHTMLSelectionObject_iface.lpVtbl = &HTMLSelectionObjectVtbl; diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 83559c07171..94b00a07e82 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -326,7 +326,7 @@ sync_test("builtin_toString", function() { } if(v < 11) { test("eventObject", document.createEventObject(), "MSEventObj", null, true); - test("selection", document.selection, "MSSelection", null, true); + test("selection", document.selection, "MSSelection"); } if(v >= 9) { test("computedStyle", window.getComputedStyle(e), "CSSStyleDeclaration", null, true);