Corporate Firefox Deployment This site outlines steps for corporate deployment of the Mozilla Firefox browser and autoconfig.


Sunday, May 08, 2005

firefox.cfg

////////////////////////////////////////////////////////////

//firefox.cfg lockprefs rxg
////////////////////////////////////////////////////////////

// Do NOT check for automatic updates
lockPref("update.app.enabled", false);
lockPref("update.extensions.enabled", false);

// set proxy.pac file location
lockPref("network.proxy.autoconfig_url", "http://intranet/proxy.pac");
lockPref("network.proxy.type", 2);

// Turn off initial security warning
lockPref("security.warn_submit_insecure", false);

// Remove painting delay when loading pages. Value in milliseconds
(default is 250)
lockPref("nglayout.initialpaint.delay", 1);

// Boost connections for broadband
lockPref("network.http.max-connections", 24); //Default is 24
lockPref("network.http.max-connections-per-server", 24); //Default is 8
lockPref("network.http.max-persistent-connections-per-proxy", 16);
//Default is 4
lockPref("network.http.max-persistent-connections-per-server", 8);
//Default is 2

lockPref("network.http.pipelining", true);
lockPref("network.http.proxy.pipelining", true);
lockPref("network.http.pipelining.maxrequests", 16);
lockPref("content.notify.backoffcount", 5);
lockPref("plugin.expose_full_path", true);

//Fast Computer Fast Connection
lockPref("content.interrupt.parsing", true);
lockPref("content.max.tokenizing.time", 2250000);
lockPref("content.notify.interval", 750000);
lockPref("content.notify.ontimer", true);
lockPref("content.switch.threshold", 750000);
lockPref("browser.cache.memory.capacity", 65536);

// No Web page should be able to redefine the browser's UI.
// Bug 107949 - Add pref for ignoring window feature options on
window.open()
// http://bugzilla.mozilla.org/show_bug.cgi?id=107949
lockPref("dom.disable_window_open_feature.close", true);
lockPref("dom.disable_window_open_feature.minimizable", true);
lockPref("dom.disable_window_open_feature.scrollbars", true);

// Bug 176304 - Option to disallow scripts from hiding toolbars
// http://bugzilla.mozilla.org/show_bug.cgi?id=176304
lockPref("dom.disable_window_open_feature.titlebar", true);
lockPref("dom.disable_window_open_feature.toolbar", true);
lockPref("dom.disable_window_open_feature.location", true);
lockPref("dom.disable_window_open_feature.directories", true);
lockPref("dom.disable_window_open_feature.personalbar", true);
lockPref("dom.disable_window_open_feature.menubar", true);
lockPref("dom.disable_window_open_feature.status", true);
lockPref("dom.disable_window_flip", true);
lockPref("dom.disable_window_status_change", true);
lockPref("dom.disable_window_move_resize", true);

// Bug 101509 - Pref to disable resizable=no
// http://bugzilla.mozilla.org/show_bug.cgi?id=101509
lockPref("dom.disable_window_open_feature.resizable", true);

// Resize frames
lockPref("layout.frames.force_resizability", true);

// Let remote content link to local (file://) content. This is needed
for intranets.
// http://bugzilla.mozilla.org/show_bug.cgi?id=84128#c20
lockPref("security.checkloaduri", false);

// Show error pages instead of popup errors. i.e. Unable to resolve.
// http://bugzilla.mozilla.org/show_bug.cgi?id=28586
lockPref("browser.xul.error_pages.enabled", true);

// Disable blinking text:
lockPref("browser.blink_allowed", false);

// Image animation mode: normal, once, none.
// This pref now has UI under Privacy & Security->Images.
lockPref("image.animation_mode", "once");

// Show pref UI to block images that don't come from the current server
// This is shown by default in Firefox.
lockPref("imageblocker.enable", true);

// Turn that annoying autocomplete popup REALLY off:
// (This actually has a UI but it's buried.)
lockPref("browser.urlbar.autocomplete.enabled", false);
lockPref("browser.urlbar.showPopup", false);
lockPref("browser.urlbar.showSearch", false);

// Turn off the download manager (0=download manager, 1=simple dialog?)
lockPref("browser.downloadmanager.behavior", 1);

// Enable the marquee tag (disabled by default):
lockPref("browser.display.enable_marquee", true);

// Enable image placeholders.
lockPref("browser.display.show_image_placeholders", false);

////////////////////////////////////////////////////////////
// Platform parity/UI issues
////////////////////////////////////////////////////////////

// Key modifier stuff: see bug 22515
// Windows-style access keys:
//lockPref("ui.key.accelKey", 17);
//lockPref("ui.key.menuAccessKey", 18);
//lockPref("ui.key.menuAccessKeyFocuses", true);

// Middle mouse prefs: true by default on Unix, false on other platforms.
lockPref("middlemouse.paste", false);
lockPref("middlemouse.openNewWindow", true);
lockPref("middlemouse.contentLoadURL", false);
lockPref("middlemouse.scrollbarPosition", false);

// Newline paste behavior: 0=paste unchanged, 1=paste only
// first line, 2=replace with spaces, 3=strip newlines
lockPref("editor.singleLine.pasteNewlines", 0);

////////////////////////////////////////////////////////////
// UI look-and-feel issues
////////////////////////////////////////////////////////////

// Tab focus model bit field:
// 1 focuses text controls, 2 focuses other form elements,
// 4 adds links.
// Most users will want 1, 3, or 7.
lockPref("accessibility.tabfocus", 1);

// Typeahead find configuration:
lockPref("accessibility.typeaheadfind", true);
lockPref("accessibility.typeaheadfind.linksonly", true);
lockPref("accessibility.typeaheadfind.startlinksonly", false);
lockPref("accessibility.typeaheadfind.timeout", 5000);

// Set select colors for text:
lockPref("ui.textSelectBackground", "navy");
lockPref("ui.textSelectForeground", "white");
// Select color for typeahead find is slightly different:
lockPref("ui.textSelectBackgroundAttention", "green");

////////////////////////////////////////////////////////////
// Control of popup windows
////////////////////////////////////////////////////////////

// Use configurable security policies to override popups, see
// http://www.mozilla.org/projects/security/components/ConfigPolicy.html

// Limit popups to the same site:
lockPref("capability.policy.default.Window.open","sameOrigin");

// Disable JS windows popping up without direct action from the user
lockPref("dom.disable_open_during_load", true);

// Open links from external apps into a new tab
// (Firefox 1.0 builds have a UI for this pref in the Options dialog)
lockPref("browser.link.open_external", 3);
// Force new windows into tabs
// (Firefox 1.0+ builds have a UI for this pref in the Options dialog)
lockPref("browser.link.open_newwindow", 3);
// Make the above pref apply only to targeted links, not window.open
lockPref("browser.link.open_newwindow.restriction", 1);
// Don't focus new tabs opened by left-click or external URL
lockPref("browser.tabs.loadDivertedInBackground", true);
// Don't focus new tabs opened by middle-click or ctrl-click
// (All recent Firefox and Suite builds have a UI for this pref)
lockPref("browser.tabs.loadInBackground", true);

// It is now possible to disable the JavaScript window.open() method
// when it is not called as a result of a mouse click.
// When the dom.disable_open_click_delay pref is set to a non-zero
// number, window.open will fail when called more than that number
// of milliseconds after a mouse click.
lockPref("dom.disable_open_click_delay", 1000);

////////////////////////////////////////////////////////////
// Miscellaneous stuff
////////////////////////////////////////////////////////////

// Wrap column for html output from the editor:
lockPref("editor.htmlWrapColumn", 72);

// Show JS warnings. This is also available in the Debug panel
// under Preferences.
lockPref("javascript.options.strict", true);

// Change default paper size from US-Letter to A4:
lockPref("print.postscript.paper_size", "A4");

0 Comments:

Post a Comment

<< Home