mirror of
https://github.com/reactos/wine.git
synced 2025-02-18 03:48:01 +00:00
mshtml: Disable some default Gecko warnings.
This commit is contained in:
parent
c32cca8066
commit
c0881ac515
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user