mshtml: Use "Netscape" as appName in IE11 compat mode.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-03-26 16:34:01 +01:00 committed by Alexandre Julliard
parent bbb46e819d
commit 53cc70caa4
2 changed files with 6 additions and 1 deletions

View File

@ -1150,7 +1150,8 @@ static HRESULT WINAPI OmNavigator_get_appName(IOmNavigator *iface, BSTR *p)
TRACE("(%p)->(%p)\n", This, p);
*p = SysAllocString(L"Microsoft Internet Explorer");
*p = SysAllocString(dispex_compat_mode(&This->dispex) == COMPAT_MODE_IE11
? L"Netscape" : L"Microsoft Internet Explorer");
if(!*p)
return E_OUTOFMEMORY;

View File

@ -371,4 +371,8 @@ sync_test("navigator", function() {
? "^" + (v < 9 ? "4" : "5") + "\\.0 \\(compatible; MSIE " + (v < 7 ? 7 : v) + "\\.0; Windows NT [^\\)]*\\)$"
: "^5.0 \\(Windows NT [0-9].[0-9]; .*Trident/[678]\\.0.*rv:11.0\\) like Gecko$";
ok(new RegExp(re).test(app), "appVersion = " + app);
ok(navigator.appCodeName === "Mozilla", "appCodeName = " + navigator.appCodeName);
ok(navigator.appName === (v < 11 ? "Microsoft Internet Explorer" : "Netscape"),
"appName = " + navigator.appName);
});