mshtml: Use ActiveScript for JavaScript in about protocol documents.

This commit is contained in:
Jacek Caban 2009-09-09 21:32:11 +02:00 committed by Alexandre Julliard
parent 3d99a99851
commit f3fc00503c
2 changed files with 6 additions and 3 deletions

View File

@ -42,7 +42,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static BOOL use_gecko_script(LPCWSTR url) static BOOL use_gecko_script(LPCWSTR url)
{ {
static const WCHAR fileW[] = {'f','i','l','e',':'}; static const WCHAR fileW[] = {'f','i','l','e',':'};
return strncmpiW(fileW, url, sizeof(fileW)/sizeof(WCHAR)); static const WCHAR aboutW[] = {'a','b','o','u','t',':'};
return strncmpiW(fileW, url, sizeof(fileW)/sizeof(WCHAR))
&& strncmpiW(aboutW, url, sizeof(aboutW)/sizeof(WCHAR));
} }
void set_current_mon(HTMLDocument *This, IMoniker *mon) void set_current_mon(HTMLDocument *This, IMoniker *mon)

View File

@ -4755,8 +4755,8 @@ static void test_elems(IHTMLDocument2 *doc)
DISPID pid = -1; DISPID pid = -1;
BSTR str = a2bstr("Testing"); BSTR str = a2bstr("Testing");
hres = IDispatchEx_GetDispID(dispex, str, 1, &pid); hres = IDispatchEx_GetDispID(dispex, str, 1, &pid);
todo_wine ok(hres == S_OK, "GetDispID failed: %08x\n", hres); ok(hres == S_OK, "GetDispID failed: %08x\n", hres);
todo_wine ok(pid != -1, "pid == -1\n"); ok(pid != -1, "pid == -1\n");
SysFreeString(str); SysFreeString(str);
IDispatchEx_Release(dispex); IDispatchEx_Release(dispex);
} }