Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0ba543ac
Commit
0ba543ac
authored
Nov 16, 2022
by
Evan Tang
Committed by
Alexandre Julliard
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Hide things that were removed in IE11.
parent
b45eca88
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
21 deletions
+64
-21
htmldoc.c
dlls/mshtml/htmldoc.c
+15
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+4
-2
htmlimg.c
dlls/mshtml/htmlimg.c
+15
-2
htmlwindow.c
dlls/mshtml/htmlwindow.c
+18
-3
documentmode.js
dlls/mshtml/tests/documentmode.js
+12
-12
No files found.
dlls/mshtml/htmldoc.c
View file @
0ba543ac
...
...
@@ -6149,6 +6149,19 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
{
DISPID_IHTMLDOCUMENT2_LOCATION
,
HTMLDocumentNode_location_hook
},
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
document2_ie11_hooks
[]
=
{
{
DISPID_IHTMLDOCUMENT2_URL
,
NULL
,
L"URL"
},
{
DISPID_IHTMLDOCUMENT2_LOCATION
,
HTMLDocumentNode_location_hook
},
{
DISPID_IHTMLDOCUMENT2_CREATESTYLESHEET
,
NULL
},
{
DISPID_IHTMLDOCUMENT2_FILESIZE
,
NULL
},
{
DISPID_IHTMLDOCUMENT2_SELECTION
,
NULL
},
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
document3_ie11_hooks
[]
=
{
{
DISPID_IHTMLDOCUMENT3_ATTACHEVENT
,
NULL
},
{
DISPID_IHTMLDOCUMENT3_DETACHEVENT
,
NULL
},
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
document6_ie9_hooks
[]
=
{
{
DISPID_IHTMLDOCUMENT6_ONSTORAGE
},
{
DISPID_UNKNOWN
}
...
...
@@ -6168,9 +6181,9 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
dispex_info_add_interface
(
info
,
IHTMLDocument6_tid
,
NULL
);
}
else
{
dispex_info_add_interface
(
info
,
IHTMLDocument6_tid
,
mode
>=
COMPAT_MODE_IE9
?
document6_ie9_hooks
:
NULL
);
dispex_info_add_interface
(
info
,
IHTMLDocument3_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLDocument3_tid
,
mode
>=
COMPAT_MODE_IE11
?
document3_ie11_hooks
:
NULL
);
}
dispex_info_add_interface
(
info
,
IHTMLDocument2_tid
,
document2_hooks
);
dispex_info_add_interface
(
info
,
IHTMLDocument2_tid
,
mode
>=
COMPAT_MODE_IE11
?
document2_ie11_hooks
:
document2_hooks
);
}
static
dispex_static_data_t
HTMLDocumentNode_dispex
=
{
...
...
dlls/mshtml/htmlelem.c
View file @
0ba543ac
...
...
@@ -7185,8 +7185,10 @@ void HTMLElement_init_dispex_info(dispex_data_t *info, compat_mode_t mode)
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
elem2_ie11_hooks
[]
=
{
{
DISPID_IHTMLELEMENT2_DOSCROLL
,
NULL
},
{
DISPID_IHTMLELEMENT2_READYSTATE
,
NULL
},
{
DISPID_IHTMLELEMENT2_ATTACHEVENT
,
NULL
},
{
DISPID_IHTMLELEMENT2_DETACHEVENT
,
NULL
},
{
DISPID_IHTMLELEMENT2_DOSCROLL
,
NULL
},
{
DISPID_IHTMLELEMENT2_READYSTATE
,
NULL
},
{
DISPID_UNKNOWN
}
};
...
...
dlls/mshtml/htmlimg.c
View file @
0ba543ac
...
...
@@ -24,6 +24,7 @@
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "mshtmdid.h"
#include "wine/debug.h"
...
...
@@ -727,15 +728,27 @@ static const NodeImplVtbl HTMLImgElementImplVtbl = {
static
const
tid_t
HTMLImgElement_iface_tids
[]
=
{
HTMLELEMENT_TIDS
,
IHTMLImgElement_tid
,
0
};
static
void
HTMLImgElement_init_dispex_info
(
dispex_data_t
*
info
,
compat_mode_t
mode
)
{
static
const
dispex_hook_t
img_ie11_hooks
[]
=
{
{
DISPID_IHTMLIMGELEMENT_FILESIZE
,
NULL
},
{
DISPID_UNKNOWN
}
};
HTMLElement_init_dispex_info
(
info
,
mode
);
dispex_info_add_interface
(
info
,
IHTMLImgElement_tid
,
mode
>=
COMPAT_MODE_IE11
?
img_ie11_hooks
:
NULL
);
}
static
dispex_static_data_t
HTMLImgElement_dispex
=
{
L"HTMLImageElement"
,
NULL
,
DispHTMLImg_tid
,
HTMLImgElement_iface_tids
,
HTMLElement_init_dispex_info
HTML
Img
Element_init_dispex_info
};
HRESULT
HTMLImgElement_Create
(
HTMLDocumentNode
*
doc
,
nsIDOMElement
*
nselem
,
HTMLElement
**
elem
)
...
...
dlls/mshtml/htmlwindow.c
View file @
0ba543ac
...
...
@@ -3952,10 +3952,25 @@ static void HTMLWindow_init_dispex_info(dispex_data_t *info, compat_mode_t compa
{
DISPID_IHTMLWINDOW2_LOCATION
,
IHTMLWindow2_location_hook
},
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
window2_ie11_hooks
[]
=
{
{
DISPID_IHTMLWINDOW2_LOCATION
,
IHTMLWindow2_location_hook
},
{
DISPID_IHTMLWINDOW2_EXECSCRIPT
,
NULL
},
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
window3_hooks
[]
=
{
{
DISPID_IHTMLWINDOW3_SETTIMEOUT
,
IHTMLWindow3_setTimeout_hook
},
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
window3_ie11_hooks
[]
=
{
{
DISPID_IHTMLWINDOW3_SETTIMEOUT
,
IHTMLWindow3_setTimeout_hook
},
{
DISPID_IHTMLWINDOW3_ATTACHEVENT
,
NULL
},
{
DISPID_IHTMLWINDOW3_DETACHEVENT
,
NULL
},
{
DISPID_UNKNOWN
}
};
static
const
dispex_hook_t
window4_ie11_hooks
[]
=
{
{
DISPID_IHTMLWINDOW4_CREATEPOPUP
,
NULL
},
{
DISPID_UNKNOWN
}
};
if
(
compat_mode
>=
COMPAT_MODE_IE9
)
dispex_info_add_interface
(
info
,
IHTMLWindow7_tid
,
NULL
);
...
...
@@ -3965,8 +3980,9 @@ static void HTMLWindow_init_dispex_info(dispex_data_t *info, compat_mode_t compa
dispex_info_add_interface
(
info
,
IWineHTMLWindowPrivate_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLWindow5_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLWindow3_tid
,
window3_hooks
);
dispex_info_add_interface
(
info
,
IHTMLWindow2_tid
,
window2_hooks
);
dispex_info_add_interface
(
info
,
IHTMLWindow4_tid
,
compat_mode
>=
COMPAT_MODE_IE11
?
window4_ie11_hooks
:
NULL
);
dispex_info_add_interface
(
info
,
IHTMLWindow3_tid
,
compat_mode
>=
COMPAT_MODE_IE11
?
window3_ie11_hooks
:
window3_hooks
);
dispex_info_add_interface
(
info
,
IHTMLWindow2_tid
,
compat_mode
>=
COMPAT_MODE_IE11
?
window2_ie11_hooks
:
window2_hooks
);
EventTarget_init_dispex_info
(
info
,
compat_mode
);
}
...
...
@@ -3996,7 +4012,6 @@ static const event_target_vtbl_t HTMLWindow_event_target_vtbl = {
};
static
const
tid_t
HTMLWindow_iface_tids
[]
=
{
IHTMLWindow4_tid
,
IHTMLWindow6_tid
,
0
};
...
...
dlls/mshtml/tests/documentmode.js
View file @
0ba543ac
...
...
@@ -274,8 +274,8 @@ sync_test("elem_props", function() {
var
v
=
document
.
documentMode
;
test_exposed
(
"attachEvent"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"detachEvent"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"attachEvent"
,
v
<
11
);
test_exposed
(
"detachEvent"
,
v
<
11
);
test_exposed
(
"doScroll"
,
v
<
11
);
test_exposed
(
"readyState"
,
v
<
11
);
test_exposed
(
"clientTop"
,
true
);
...
...
@@ -305,7 +305,7 @@ sync_test("elem_props", function() {
test_exposed
(
"classList"
,
v
>=
10
);
elem
=
document
.
createElement
(
"img"
);
test_exposed
(
"fileSize"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"fileSize"
,
v
<
11
);
});
sync_test
(
"doc_props"
,
function
()
{
...
...
@@ -320,11 +320,11 @@ sync_test("doc_props", function() {
var
v
=
document
.
documentMode
;
ok
(
document
.
mimeType
===
external
.
getExpectedMimeType
(
"text/html"
),
"mimeType = "
+
document
.
mimeType
);
test_exposed
(
"attachEvent"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"detachEvent"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"createStyleSheet"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"fileSize"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"selection"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"attachEvent"
,
v
<
11
);
test_exposed
(
"detachEvent"
,
v
<
11
);
test_exposed
(
"createStyleSheet"
,
v
<
11
);
test_exposed
(
"fileSize"
,
v
<
11
);
test_exposed
(
"selection"
,
v
<
11
);
test_exposed
(
"onstorage"
,
v
<
9
);
test_exposed
(
"textContent"
,
v
>=
9
);
test_exposed
(
"prefix"
,
v
>=
9
);
...
...
@@ -365,10 +365,10 @@ sync_test("window_props", function() {
var
v
=
document
.
documentMode
;
test_exposed
(
"attachEvent"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"detachEvent"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"execScript"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"createPopup"
,
v
<
11
,
v
>=
11
);
test_exposed
(
"attachEvent"
,
v
<
11
);
test_exposed
(
"detachEvent"
,
v
<
11
);
test_exposed
(
"execScript"
,
v
<
11
);
test_exposed
(
"createPopup"
,
v
<
11
);
test_exposed
(
"postMessage"
,
true
);
test_exposed
(
"sessionStorage"
,
true
);
test_exposed
(
"localStorage"
,
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment