Commit f3fc0050 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use ActiveScript for JavaScript in about protocol documents.

parent 3d99a998
......@@ -42,7 +42,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static BOOL use_gecko_script(LPCWSTR url)
{
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)
......
......@@ -4755,8 +4755,8 @@ static void test_elems(IHTMLDocument2 *doc)
DISPID pid = -1;
BSTR str = a2bstr("Testing");
hres = IDispatchEx_GetDispID(dispex, str, 1, &pid);
todo_wine ok(hres == S_OK, "GetDispID failed: %08x\n", hres);
todo_wine ok(pid != -1, "pid == -1\n");
ok(hres == S_OK, "GetDispID failed: %08x\n", hres);
ok(pid != -1, "pid == -1\n");
SysFreeString(str);
IDispatchEx_Release(dispex);
}
......
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