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
d2f5eaf9
Commit
d2f5eaf9
authored
Aug 12, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Support semicolon in UA compatible string.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36758fc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
mutation.c
dlls/mshtml/mutation.c
+6
-3
script.c
dlls/mshtml/tests/script.c
+2
-2
No files found.
dlls/mshtml/mutation.c
View file @
d2f5eaf9
...
...
@@ -405,7 +405,7 @@ BOOL parse_compat_version(const WCHAR *version_string, compat_mode_t *r)
for
(
p
=
version_string
;
'0'
<=
*
p
&&
*
p
<=
'9'
;
p
++
)
version
=
version
*
10
+
*
p
-
'0'
;
if
(
*
p
||
p
==
version_string
)
if
(
(
*
p
&&
*
p
!=
';'
)
||
p
==
version_string
)
return
FALSE
;
switch
(
version
){
...
...
@@ -434,7 +434,7 @@ BOOL parse_compat_version(const WCHAR *version_string, compat_mode_t *r)
static
BOOL
parse_ua_compatible
(
const
WCHAR
*
p
,
compat_mode_t
*
r
)
{
static
const
WCHAR
ie_eqW
[]
=
{
'I'
,
'E'
,
'='
};
static
const
WCHAR
edgeW
[]
=
{
'e'
,
'd'
,
'g'
,
'e'
,
0
};
static
const
WCHAR
edgeW
[]
=
{
'e'
,
'd'
,
'g'
,
'e'
};
TRACE
(
"%s
\n
"
,
debugstr_w
(
p
));
...
...
@@ -442,7 +442,10 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
return
FALSE
;
p
+=
3
;
if
(
!
wcsicmp
(
p
,
edgeW
))
{
if
(
!
wcsnicmp
(
p
,
edgeW
,
ARRAY_SIZE
(
edgeW
)))
{
p
+=
ARRAY_SIZE
(
edgeW
);
if
(
*
p
&&
*
p
!=
';'
)
return
FALSE
;
*
r
=
COMPAT_MODE_IE11
;
return
TRUE
;
}
...
...
dlls/mshtml/tests/script.c
View file @
d2f5eaf9
...
...
@@ -3493,9 +3493,9 @@ static void run_js_tests(void)
run_script_as_http_with_mode
(
"documentmode.js"
,
"7"
,
"7"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"8"
,
"8"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"9"
,
"9"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"10"
,
"10"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"10"
,
"10
;abc
"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"11"
,
"11"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"11"
,
"edge"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"11"
,
"edge
;123
"
);
run_script_as_http_with_mode
(
"asyncscriptload.js"
,
NULL
,
"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