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
02f46d7e
Commit
02f46d7e
authored
Mar 29, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use UAS_EXACTLEGACY in navigator object.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f1f8e4d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
omnavigator.c
dlls/mshtml/omnavigator.c
+0
-1
documentmode.js
dlls/mshtml/tests/documentmode.js
+2
-1
dom.c
dlls/mshtml/tests/dom.c
+0
-2
No files found.
dlls/mshtml/omnavigator.c
View file @
02f46d7e
...
...
@@ -1162,7 +1162,6 @@ static unsigned int get_ua_version(OmNavigator *navigator)
{
switch
(
dispex_compat_mode
(
&
navigator
->
dispex
))
{
case
COMPAT_MODE_QUIRKS
:
return
UAS_EXACTLEGACY
|
7
;
case
COMPAT_MODE_IE5
:
case
COMPAT_MODE_IE7
:
return
7
;
...
...
dlls/mshtml/tests/documentmode.js
View file @
02f46d7e
...
...
@@ -368,7 +368,8 @@ sync_test("navigator", function() {
"userAgent = "
+
navigator
.
userAgent
+
" appVersion = "
+
app
);
re
=
v
<
11
?
"^"
+
(
v
<
9
?
"4"
:
"5"
)
+
"
\\
.0
\\
(compatible; MSIE "
+
(
v
<
7
?
7
:
v
)
+
"
\\
.0; Windows NT [^
\\
)]*
\\
)$"
?
"^"
+
(
v
<
9
?
"4"
:
"5"
)
+
"
\\
.0
\\
(compatible; MSIE "
+
(
v
<
7
?
7
:
v
)
+
"
\\
.0; Windows NT [0-9].[0-9]; .*Trident/[678]
\\
.0.*
\\
)$"
:
"^5.0
\\
(Windows NT [0-9].[0-9]; .*Trident/[678]
\\
.0.*rv:11.0
\\
) like Gecko$"
;
ok
(
new
RegExp
(
re
).
test
(
app
),
"appVersion = "
+
app
);
...
...
dlls/mshtml/tests/dom.c
View file @
02f46d7e
...
...
@@ -6383,7 +6383,6 @@ static void test_navigator(IHTMLDocument2 *doc)
bstr
=
NULL
;
hres
=
IOmNavigator_get_userAgent
(
navigator
,
&
bstr
);
ok
(
hres
==
S_OK
,
"get_userAgent failed: %08x
\n
"
,
hres
);
todo_wine
ok
(
!
lstrcmpW
(
bstr
,
buf
),
"userAgent returned %s, expected
\"
%s
\"\n
"
,
wine_dbgstr_w
(
bstr
),
wine_dbgstr_w
(
buf
));
SysFreeString
(
bstr
);
...
...
@@ -6393,7 +6392,6 @@ static void test_navigator(IHTMLDocument2 *doc)
hres
=
IOmNavigator_get_appVersion
(
navigator
,
&
bstr
);
ok
(
hres
==
S_OK
,
"get_appVersion failed: %08x
\n
"
,
hres
);
todo_wine
ok
(
!
lstrcmpW
(
bstr
,
buf
+
8
),
"appVersion returned %s, expected
\"
%s
\"\n
"
,
wine_dbgstr_w
(
bstr
),
wine_dbgstr_w
(
buf
+
8
));
SysFreeString
(
bstr
);
...
...
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