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
cad03646
Commit
cad03646
authored
Apr 24, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added edge compatibility mode support.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f6b2ccc5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
mutation.c
dlls/mshtml/mutation.c
+8
-1
script.c
dlls/mshtml/tests/script.c
+1
-0
No files found.
dlls/mshtml/mutation.c
View file @
cad03646
...
@@ -371,10 +371,17 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
...
@@ -371,10 +371,17 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
{
{
int
v
=
0
;
int
v
=
0
;
static
const
WCHAR
edgeW
[]
=
{
'e'
,
'd'
,
'g'
,
'e'
,
0
};
if
(
p
[
0
]
!=
'I'
||
p
[
1
]
!=
'E'
||
p
[
2
]
!=
'='
)
if
(
p
[
0
]
!=
'I'
||
p
[
1
]
!=
'E'
||
p
[
2
]
!=
'='
)
return
FALSE
;
return
FALSE
;
p
+=
3
;
p
+=
3
;
if
(
!
strcmpiW
(
p
,
edgeW
))
{
*
r
=
COMPAT_MODE_IE11
;
return
TRUE
;
}
while
(
'0'
<=
*
p
&&
*
p
<=
'9'
)
while
(
'0'
<=
*
p
&&
*
p
<=
'9'
)
v
=
v
*
10
+
*
(
p
++
)
-
'0'
;
v
=
v
*
10
+
*
(
p
++
)
-
'0'
;
if
(
*
p
||
!
v
)
if
(
*
p
||
!
v
)
...
...
dlls/mshtml/tests/script.c
View file @
cad03646
...
@@ -3471,6 +3471,7 @@ static void run_js_tests(void)
...
@@ -3471,6 +3471,7 @@ static void run_js_tests(void)
run_script_as_http_with_mode
(
"documentmode.js"
,
"?9"
,
"9"
);
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"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?11"
,
"11"
);
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
(
"asyncscriptload.js"
,
NULL
,
"9"
);
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