Commit 6c6744f8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use jscript.dll for JavaScript for all zones except untrusted.

parent e405e4cc
......@@ -56,7 +56,7 @@ typedef struct {
static BOOL use_gecko_script(HTMLWindow *window)
{
DWORD zone, scheme;
DWORD zone;
HRESULT hres;
hres = IInternetSecurityManager_MapUrlToZone(window->secmgr, window->url, &zone, 0);
......@@ -66,11 +66,7 @@ static BOOL use_gecko_script(HTMLWindow *window)
}
TRACE("zone %d\n", zone);
if(zone == URLZONE_LOCAL_MACHINE || zone == URLZONE_TRUSTED || !window->uri)
return FALSE;
hres = IUri_GetScheme(window->uri, &scheme);
return FAILED(hres) || scheme != URL_SCHEME_ABOUT;
return zone == URLZONE_UNTRUSTED;
}
static void notify_travellog_update(HTMLDocumentObj *doc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment