From: Gabriel Ivăncescu gabrielopcode@gmail.com
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/htmlevent.c | 18 +++++++++--------- dlls/mshtml/tests/documentmode.js | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c index 4525ec52b07..a88f6a43ae9 100644 --- a/dlls/mshtml/htmlevent.c +++ b/dlls/mshtml/htmlevent.c @@ -3664,8 +3664,7 @@ dispex_static_data_t KeyboardEvent_dispex = {
static void DOMPageTransitionEvent_init_dispex_info(dispex_data_t *info, compat_mode_t mode) { - if(mode >= COMPAT_MODE_IE11) - dispex_info_add_interface(info, IWinePageTransitionEvent_tid, NULL); + dispex_info_add_interface(info, IWinePageTransitionEvent_tid, NULL); }
static const dispex_static_data_vtbl_t DOMPageTransitionEvent_dispex_vtbl = { @@ -3676,12 +3675,13 @@ static const dispex_static_data_vtbl_t DOMPageTransitionEvent_dispex_vtbl = { };
dispex_static_data_t PageTransitionEvent_dispex = { - .id = PROT_PageTransitionEvent, - .prototype_id = PROT_Event, - .vtbl = &DOMPageTransitionEvent_dispex_vtbl, - .disp_tid = DispDOMEvent_tid, - .iface_tids = Event_iface_tids, - .init_info = DOMPageTransitionEvent_init_dispex_info, + .id = PROT_PageTransitionEvent, + .prototype_id = PROT_Event, + .vtbl = &DOMPageTransitionEvent_dispex_vtbl, + .disp_tid = DispDOMEvent_tid, + .iface_tids = Event_iface_tids, + .init_info = DOMPageTransitionEvent_init_dispex_info, + .min_compat_mode = COMPAT_MODE_IE11, };
static const dispex_static_data_vtbl_t DOMCustomEvent_dispex_vtbl = { @@ -3899,7 +3899,7 @@ static const struct { [EVENT_TYPE_CLIPBOARD] = { NULL, generic_event_ctor }, [EVENT_TYPE_FOCUS] = { NULL, generic_event_ctor }, [EVENT_TYPE_DRAG] = { NULL, generic_event_ctor }, - [EVENT_TYPE_PAGETRANSITION] = { NULL, page_transition_event_ctor }, + [EVENT_TYPE_PAGETRANSITION] = { NULL, page_transition_event_ctor, COMPAT_MODE_IE11 }, [EVENT_TYPE_CUSTOM] = { &IID_nsIDOMCustomEvent, custom_event_ctor }, [EVENT_TYPE_PROGRESS] = { &IID_nsIDOMProgressEvent, progress_event_ctor, COMPAT_MODE_IE10 }, [EVENT_TYPE_MESSAGE] = { NULL, message_event_ctor }, diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 912f6ec4582..4a37e912ebb 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -672,6 +672,7 @@ sync_test("window_props", function() { test_exposed("console", v >= 10); test_exposed("matchMedia", v >= 10); test_exposed("MutationObserver", v >= 11); + test_exposed("PageTransitionEvent", v >= 11); });
sync_test("domimpl_props", function() { @@ -3727,6 +3728,8 @@ sync_test("prototype props", function() { "DOCUMENT_TYPE_NODE", "ELEMENT_NODE", "ENTITY_NODE", "ENTITY_REFERENCE_NODE", "NOTATION_NODE", "PROCESSING_INSTRUCTION_NODE", "TEXT_NODE", "hasAttributes", "normalize" ]); + if(v >= 11) + check(PageTransitionEvent, [ "persisted" ]); check(StorageEvent, [ "initStorageEvent", "key", "newValue", "oldValue", "storageArea", "url" ]); check(Text, [ "removeNode", "replaceNode", "replaceWholeText", "splitText", "swapNode", "wholeText" ], [ "replaceWholeText", "wholeText" ]); check(UIEvent, [ "detail", "initUIEvent", "view" ], null, [ "deviceSessionId" ]);