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

Tuesday, May 17, 2005

Amended firefox.cfg

//firefox.cfg lockprefs rxg

// Do NOT check for automatic updates
lockPref("app.update.enabled", false);
lockPref("extensions.update.enabled", false);
lockPref("app.update.autoUpdateEnabled", 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);

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);

lockpref("network.http.pipelining", true);
lockpref("network.http.proxy.pipelining", true);
lockpref("network.http.pipelining.maxrequests", 16);

// No Web page should be able to redefine the browser's UI.
// Bug 107949 - Add pref for ignoring window feature options on
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
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
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
lockPref("security.checkloaduri", false);

// Show error pages instead of popup errors. i.e. Unable to resolve.
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

// Limit popups to the same site:

// 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("", 3);
// Force new windows into tabs
// (Firefox 1.0+ builds have a UI for this pref in the Options dialog)
lockPref("", 3);
// Make the above pref apply only to targeted links, not
lockPref("", 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 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, 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");


Anonymous Anonymous said...

there is an error just after pipelining, there is a missing quote, all prefs after this don't get taken in if this is copy and pasted from the webpage.

1:17 AM  
Blogger The Francophile said...

Thanks, I have corrected the error.

10:38 AM  
Anonymous Anonymous said...

This comment has been removed by a blog administrator.

10:57 AM  

Post a Comment

<< Home