mshtml: Default to IE11 for Internet URL zone.

Fixes Swords of Legends Online launcher.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2021-07-21 23:44:32 +03:00 committed by Alexandre Julliard
parent b7ddab2e46
commit 4eb35fb237
1 changed files with 2 additions and 7 deletions

View File

@ -828,15 +828,10 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
DWORD zone;
HRESULT hres;
/*
* Internet URL zone is treated differently. Native defaults to latest supported
* mode. We default to IE8. Ideally, we'd sync that with version used for IE=edge
* X-UA-Compatible version, allow configuration and default to higher version
* (once it's well supported).
*/
/* Internet URL zone is treated differently and defaults to the latest supported mode. */
hres = IInternetSecurityManager_MapUrlToZone(get_security_manager(), window->url, &zone, 0);
if(SUCCEEDED(hres) && zone == URLZONE_INTERNET)
mode = COMPAT_MODE_IE8;
mode = COMPAT_MODE_IE11;
}
set_document_mode(This, mode, FALSE);