From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/omnavigator.c | 14 +++++++------- dlls/mshtml/tests/documentmode.js | 2 ++ 3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 405f16184f9..00bc833b32b 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -447,6 +447,7 @@ typedef struct { X(HTMLTableRowElement) \ X(HTMLTextAreaElement) \ X(HTMLTitleElement) \ + X(History) \ X(KeyboardEvent) \ X(MSCSSProperties) \ X(MSCSSRuleList) \ diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c index 7b63ff85ff3..249c1ab8fe5 100644 --- a/dlls/mshtml/omnavigator.c +++ b/dlls/mshtml/omnavigator.c @@ -549,15 +549,15 @@ static const dispex_static_data_vtbl_t OmHistory_dispex_vtbl = { .unlink = OmHistory_unlink, };
-static const tid_t OmHistory_iface_tids[] = { +static const tid_t History_iface_tids[] = { IOmHistory_tid, 0 }; -static dispex_static_data_t OmHistory_dispex = { - "History", - &OmHistory_dispex_vtbl, - DispHTMLHistory_tid, - OmHistory_iface_tids +dispex_static_data_t History_dispex = { + .id = PROT_History, + .vtbl = &OmHistory_dispex_vtbl, + .disp_tid = DispHTMLHistory_tid, + .iface_tids = History_iface_tids, };
@@ -569,7 +569,7 @@ HRESULT create_history(HTMLInnerWindow *window, OmHistory **ret) if(!history) return E_OUTOFMEMORY;
- init_dispatch(&history->dispex, &OmHistory_dispex, window, + init_dispatch(&history->dispex, &History_dispex, window, dispex_compat_mode(&window->event_target.dispex)); history->IOmHistory_iface.lpVtbl = &OmHistoryVtbl;
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 0232e41e843..400c321a4de 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3265,4 +3265,6 @@ sync_test("prototypes", function() { check(StorageEvent.prototype, Event.prototype, "storage event prototype"); check(screen, Screen.prototype, "screen"); check(Screen.prototype, Object.prototype, "screen prototype"); + check(history, History.prototype, "history"); + check(History.prototype, Object.prototype, "history prototype"); });