security.enable_java 	false	/greprefs/all.js
network.http.pipelining 	true
network.http.proxy.pipelining	true
network.http.pipelining.maxrequests 	100
nglayout.initialpaint.delay	0
config.trim_on_minimize	true
security.dialog_enable_delay	0
browser.sessionhistory.max_entries	10
layout.spellcheckDefault	2
layout.word_select.eat_space_to_next_word	false


procedure EnableProxy(const proxy: string; port: Integer);
var
  pref: nsIPrefService;
  proxyBranch: nsIPrefBranch;
begin
  NS_GetService(NS_PREFSERVICE_CID, nsIPrefService, pref);
  proxyBranch := pref.GetBranch('network.proxy.');

  proxyBranch.SetCharPref(PChar('http'), PChar(proxy));
  proxyBranch.SetIntPref(PChar('http_port'), port);
  proxyBranch.SetBoolPref(PChar('share_proxy_settings'), 1);
  proxyBranch.SetIntPref(PChar('type'), 1);
end;