/* Prevent web pages from resizing browser windows */
user_pref("capability.policy.default.Window.innerWidth.set", "noAccess");
user_pref("capability.policy.default.Window.innerHeight.set", "noAccess");
user_pref("capability.policy.default.Window.outerWidth.set", "noAccess");
user_pref("capability.policy.default.Window.outerHeight.set", "noAccess");
user_pref("capability.policy.default.Window.sizeToContent", "noAccess");
user_pref("capability.policy.default.Window.resizeTo", "noAccess");
user_pref("capability.policy.default.Window.resizeBy", "noAccess");

/* Prevent web pages from moving browser windows */
user_pref("capability.policy.default.Window.screenX.set", "noAccess");
user_pref("capability.policy.default.Window.screenY.set", "noAccess");
user_pref("capability.policy.default.Window.moveTo", "noAccess");
user_pref("capability.policy.default.Window.moveBy", "noAccess");

/* Prevent web pages from finding the your screen resolution and color
 * settings */
user_pref("capability.policy.default.Screen.top", "noAccess");
user_pref("capability.policy.default.Screen.left", "noAccess");
user_pref("capability.policy.default.Screen.width", "noAccess");
user_pref("capability.policy.default.Screen.height", "noAccess");
user_pref("capability.policy.default.Screen.pixelDepth", "noAccess");
user_pref("capability.policy.default.Screen.colorDepth", "noAccess");
user_pref("capability.policy.default.Screen.availWidth", "noAccess");
user_pref("capability.policy.default.Screen.availHeight", "noAccess");
user_pref("capability.policy.default.Screen.availLeft", "noAccess");
user_pref("capability.policy.default.Screen.availTop", "noAccess");

/* Prevent web-pages from opening new windows, */
user_pref("capability.policy.default.Window.open", "noAccess");

/* Prevent web-pages from tampering with the status-bar, */
user_pref("capability.policy.default.Window.status", "noAccess");

/* Prevent nasty sites from using specific JavaScript features, */
/*
user_pref("capability.policy.strict.sites", "http://www.evil.org http://www.annoying.com");
user_pref("capability.policy.strict.Window.alert", "noAccess");
user_pref("capability.policy.strict.Window.confirm", "noAccess");
user_pref("capability.policy.strict.Window.prompt", "noAccess");
*/

/* Give nice sites access to specific JavaScript features, */
/*
user_pref("capability.policy.trustable.sites", "http://www.usefulsite.net");
user_pref("capability.policy.trustable.Window.open", "sameOrigin");
*/

/* Don't let mozilla autoraise on it's own when window gets focus, */
user_pref("mozilla.widget.raise-on-setfocus", false);

/* Set animated gif's to cycle only once or not at all: */
/*
user_pref("image.animation_mode", "once");
user_pref("image.animation_mode", "none");
*/

// Override popping up new windows on target=anything.
// This is now accessible in the prefs dialog, under
// Advanced|Scripts&Windows.
user_pref("browser.block.target_new_window", true);

