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

This commit is contained in:
Jacek Caban 2012-03-27 13:40:01 +02:00 committed by Alexandre Julliard
parent e405e4ccb9
commit 6c6744f800
1 changed files with 2 additions and 6 deletions

View File

@ -56,7 +56,7 @@ typedef struct {
static BOOL use_gecko_script(HTMLWindow *window) static BOOL use_gecko_script(HTMLWindow *window)
{ {
DWORD zone, scheme; DWORD zone;
HRESULT hres; HRESULT hres;
hres = IInternetSecurityManager_MapUrlToZone(window->secmgr, window->url, &zone, 0); 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); TRACE("zone %d\n", zone);
if(zone == URLZONE_LOCAL_MACHINE || zone == URLZONE_TRUSTED || !window->uri) return zone == URLZONE_UNTRUSTED;
return FALSE;
hres = IUri_GetScheme(window->uri, &scheme);
return FAILED(hres) || scheme != URL_SCHEME_ABOUT;
} }
static void notify_travellog_update(HTMLDocumentObj *doc) static void notify_travellog_update(HTMLDocumentObj *doc)