mshtml: Expose the IHTMLEventObj5 props to scripts.

It's mostly implemented, and issession isn't even exposed.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2024-02-05 16:15:23 +02:00 committed by Alexandre Julliard
parent ae0e5ee901
commit 330d8cd998
3 changed files with 8 additions and 1 deletions

View file

@ -2065,6 +2065,7 @@ static const dispex_static_data_vtbl_t HTMLEventObj_dispex_vtbl = {
};
static const tid_t HTMLEventObj_iface_tids[] = {
IHTMLEventObj5_tid,
IHTMLEventObj_tid,
0
};

View file

@ -208,6 +208,7 @@ typedef struct EventTarget EventTarget;
XIID(IHTMLElementCollection) \
XIID(IHTMLEmbedElement) \
XIID(IHTMLEventObj) \
XIID(IHTMLEventObj5) \
XIID(IHTMLFiltersCollection) \
XIID(IHTMLFormElement) \
XIID(IHTMLFrameBase) \

View file

@ -284,7 +284,12 @@ function test_attach_in_attach() {
}
function test_event_obj_props(e) {
var i, props;
var i, props = [
"altKey", "button", "cancelBubble", "clientX", "clientY", "ctrlKey", "data", "fromElement", "keyCode", "offsetX", "offsetY",
"origin", "qualifier", "reason", "returnValue", "screenX", "screenY", "shiftKey", "source", "srcElement", "srcFilter",
"toElement", "type", "url", "x", "y" ];
for(i = 0; i < props.length; i++)
ok(props[i] in e, props[i] + " not in event obj");
props = [ "imeCompositionChange", "imeNotifyCommand", "imeNotifyData", "imeRequest", "imeRequestData", "issession", "keyboardLayout" ];
for(i = 0; i < props.length; i++)