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

mshtml: Disable some default Gecko warnings.

parent c32cca80
......@@ -303,6 +303,15 @@ static void set_lang(nsIPrefBranch *pref)
ERR("SetCharPref failed: %08x\n", nsres);
}
static void set_bool_pref(nsIPrefBranch *pref, const char *pref_name, BOOL val)
{
nsresult nsres;
nsres = nsIPrefBranch_SetBoolPref(pref, pref_name, val);
if(NS_FAILED(nsres))
ERR("Could not set pref %s\n", debugstr_a(pref_name));
}
static void set_profile(void)
{
nsIPrefBranch *pref;
......@@ -340,6 +349,8 @@ static void set_profile(void)
}
set_lang(pref);
set_bool_pref(pref, "security.warn_entering_secure", FALSE);
set_bool_pref(pref, "security.warn_submit_insecure", FALSE);
nsIPrefBranch_Release(pref);
}
......
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