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
e64ab65a
Commit
e64ab65a
authored
Sep 13, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't expose document.onstorage for IE9+ modes.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
ae1d54da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
htmldoc.c
dlls/mshtml/htmldoc.c
+5
-1
documentmode.js
dlls/mshtml/tests/documentmode.js
+1
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
e64ab65a
...
@@ -5978,6 +5978,10 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
...
@@ -5978,6 +5978,10 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
{
DISPID_IHTMLDOCUMENT2_LOCATION
,
HTMLDocumentNode_location_hook
},
{
DISPID_IHTMLDOCUMENT2_LOCATION
,
HTMLDocumentNode_location_hook
},
{
DISPID_UNKNOWN
}
{
DISPID_UNKNOWN
}
};
};
static
const
dispex_hook_t
document6_ie9_hooks
[]
=
{
{
DISPID_IHTMLDOCUMENT6_ONSTORAGE
},
{
DISPID_UNKNOWN
}
};
HTMLDOMNode_init_dispex_info
(
info
,
mode
);
HTMLDOMNode_init_dispex_info
(
info
,
mode
);
...
@@ -5992,7 +5996,7 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
...
@@ -5992,7 +5996,7 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
dispex_info_add_interface
(
info
,
IHTMLDocument3_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLDocument3_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLDocument6_tid
,
NULL
);
dispex_info_add_interface
(
info
,
IHTMLDocument6_tid
,
NULL
);
}
else
{
}
else
{
dispex_info_add_interface
(
info
,
IHTMLDocument6_tid
,
NULL
);
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
,
NULL
);
}
}
dispex_info_add_interface
(
info
,
IHTMLDocument2_tid
,
document2_hooks
);
dispex_info_add_interface
(
info
,
IHTMLDocument2_tid
,
document2_hooks
);
...
...
dlls/mshtml/tests/documentmode.js
View file @
e64ab65a
...
@@ -312,6 +312,7 @@ sync_test("doc_props", function() {
...
@@ -312,6 +312,7 @@ sync_test("doc_props", function() {
var
v
=
document
.
documentMode
;
var
v
=
document
.
documentMode
;
test_exposed
(
"onstorage"
,
v
<
9
);
test_exposed
(
"textContent"
,
v
>=
9
);
test_exposed
(
"textContent"
,
v
>=
9
);
test_exposed
(
"prefix"
,
v
>=
9
);
test_exposed
(
"prefix"
,
v
>=
9
);
test_exposed
(
"defaultView"
,
v
>=
9
);
test_exposed
(
"defaultView"
,
v
>=
9
);
...
...
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