Disable warn on unsecure submit

This commit is contained in:
Marco Pesenti Gritti 2006-10-17 15:06:08 +02:00
parent 1ea0f49f52
commit 6ac9e4d666

View File

@ -44,8 +44,12 @@ sugar_browser_startup(void)
prefService->GetBranch("", getter_AddRefs(pref));
NS_ENSURE_TRUE(pref, );
pref->SetBoolPref ("dom.disable_open_during_load", TRUE);
}
/* Block onload popups */
pref->SetBoolPref("dom.disable_open_during_load", TRUE);
/* Disable useless security warning */
pref->SetBoolPref("security.warn_submit_insecure", FALSE);
}
G_DEFINE_TYPE(SugarBrowser, sugar_browser, GTK_TYPE_MOZ_EMBED)